Skip to content

Instantly share code, notes, and snippets.

@jonmosco
Created February 21, 2019 16:12
Show Gist options
  • Save jonmosco/eefcff12675fc154de81cc99a2bb1500 to your computer and use it in GitHub Desktop.
Save jonmosco/eefcff12675fc154de81cc99a2bb1500 to your computer and use it in GitHub Desktop.
test do
kubeon = ". #{opt_share}/kube-ps1.sh && echo $KUBE_PS1_SHELL"
assert_equal "zsh", shell_output("zsh -c '#{kubeon}'").chomp
end
==> zsh -c '. /usr/local/opt/kube-ps1/share/kube-ps1.sh && echo $KUBE_PS1_SHELL'
/usr/local/opt/kube-ps1/share/kube-ps1.sh:27: character not in range
Error: kube-ps1: failed
An exception occurred within a child process:
Test::Unit::AssertionFailedError: <0> expected but was
<126>.
Line 27 from code:
KUBE_PS1_SYMBOL_DEFAULT=${KUBE_PS1_SYMBOL_DEFAULT:-$'\u2388 '}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment