aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-01 02:10:09 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-01 08:52:34 -0500
commit518fe0e8a2de00ce6b7f62183dfa89b410378a89 (patch)
treeb6e6601c00bad69b3219bc2f271ebab339d2cd77
parent4b74996dbcf7ba6b10b375fa75c796630b8d5b50 (diff)
downloadrneovim-518fe0e8a2de00ce6b7f62183dfa89b410378a89.tar.gz
rneovim-518fe0e8a2de00ce6b7f62183dfa89b410378a89.tar.bz2
rneovim-518fe0e8a2de00ce6b7f62183dfa89b410378a89.zip
test/wildmode_spec: override $PS1
User config may set $PS1 for a colored prompt. It breaks the screen tests.
-rw-r--r--test/functional/terminal/scrollback_spec.lua1
-rw-r--r--test/functional/ui/wildmode_spec.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/terminal/scrollback_spec.lua b/test/functional/terminal/scrollback_spec.lua
index 77fdba7fc4..b932c58430 100644
--- a/test/functional/terminal/scrollback_spec.lua
+++ b/test/functional/terminal/scrollback_spec.lua
@@ -410,6 +410,7 @@ describe("'scrollback' option", function()
command([[let $PROMPT='$$']])
screen = thelpers.screen_setup(nil, "['cmd.exe']", 30)
else
+ command('let $PS1 = "$"')
screen = thelpers.screen_setup(nil, "['sh']", 30)
end
diff --git a/test/functional/ui/wildmode_spec.lua b/test/functional/ui/wildmode_spec.lua
index 99ebc4971e..6e736b2534 100644
--- a/test/functional/ui/wildmode_spec.lua
+++ b/test/functional/ui/wildmode_spec.lua
@@ -160,6 +160,7 @@ describe("'wildmenu'", function()
if not iswin() then
command('set shell=sh') -- Need a predictable "$" prompt.
+ command('let $PS1 = "$"')
end
command('set laststatus=0')
command('vsplit')