diff options
author | Dominik Ritter <dritter03@googlemail.com> | 2018-10-07 01:01:45 +0300 |
---|---|---|
committer | Dominik Ritter <dritter03@googlemail.com> | 2018-10-12 22:50:25 +0300 |
commit | d1cd83bf0bd150c72e86de2f7b34e86f7865286d (patch) | |
tree | 05943397065381b487d3b1a7708c7eecb15ee368 /test | |
parent | b16c0d51d65249f0fdea86cd12cd64f6f0643b7e (diff) |
Fix tests
It seems like Travis changed their infrastructure. We
need to unset SSH_TTY and SSH_CLIENT to get the tests
working again.
Diffstat (limited to 'test')
-rwxr-xr-x | test/segments/context.spec | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/segments/context.spec b/test/segments/context.spec index 07300370..4dec526a 100755 --- a/test/segments/context.spec +++ b/test/segments/context.spec @@ -21,6 +21,11 @@ function tearDown() { } function testContextSegmentDoesNotGetRenderedWithDefaultUser() { + # Fix leaked state for travis + unset POWERLEVEL9K_CONTEXT_ALWAYS_SHOW + unset SSH_CLIENT + unset SSH_TTY + local DEFAULT_USER=$(whoami) local POWERLEVEL9K_CUSTOM_WORLD='echo world' local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS @@ -99,6 +104,11 @@ function testContextSegmentIsShownIfDefaultUserIsSetWhenForced() { } function testContextSegmentIsShownIfForced() { + # Fix leaked state for travis + unset POWERLEVEL9K_CONTEXT_ALWAYS_SHOW + unset SSH_CLIENT + unset SSH_TTY + local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context) local POWERLEVEL9K_ALWAYS_SHOW_USER=true |