test/wildmode_spec: override $PS1

User config may set $PS1 for a colored prompt.
It breaks the screen tests.
This commit is contained in:
Jan Edmund Lazo
2020-12-01 02:10:09 -05:00
parent 4b74996dbc
commit 518fe0e8a2
2 changed files with 2 additions and 0 deletions

View File

@@ -410,6 +410,7 @@ describe("'scrollback' option", function()
command([[let $PROMPT='$$']]) command([[let $PROMPT='$$']])
screen = thelpers.screen_setup(nil, "['cmd.exe']", 30) screen = thelpers.screen_setup(nil, "['cmd.exe']", 30)
else else
command('let $PS1 = "$"')
screen = thelpers.screen_setup(nil, "['sh']", 30) screen = thelpers.screen_setup(nil, "['sh']", 30)
end end

View File

@@ -160,6 +160,7 @@ describe("'wildmenu'", function()
if not iswin() then if not iswin() then
command('set shell=sh') -- Need a predictable "$" prompt. command('set shell=sh') -- Need a predictable "$" prompt.
command('let $PS1 = "$"')
end end
command('set laststatus=0') command('set laststatus=0')
command('vsplit') command('vsplit')