test(ex_terminal_spec): unskip tests that work on Windows (#26311)

This commit is contained in:
zeertzjq 2023-11-30 07:28:32 +08:00 committed by GitHub
parent 76d79c1ce3
commit 22270ae8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -160,7 +160,6 @@ describe(':terminal (with fake shell)', function()
end end
it('with no argument, acts like termopen()', function() it('with no argument, acts like termopen()', function()
skip(is_os('win'))
terminal_with_fake_shell() terminal_with_fake_shell()
retry(nil, 4 * screen.timeout, function() retry(nil, 4 * screen.timeout, function()
screen:expect([[ screen:expect([[
@ -184,7 +183,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it("with no argument, but 'shell' has arguments, acts like termopen()", function() it("with no argument, but 'shell' has arguments, acts like termopen()", function()
skip(is_os('win'))
nvim('set_option', 'shell', testprg('shell-test')..' -t jeff') nvim('set_option', 'shell', testprg('shell-test')..' -t jeff')
terminal_with_fake_shell() terminal_with_fake_shell()
screen:expect([[ screen:expect([[
@ -196,7 +194,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it('executes a given command through the shell', function() it('executes a given command through the shell', function()
skip(is_os('win'))
command('set shellxquote=') -- win: avoid extra quotes command('set shellxquote=') -- win: avoid extra quotes
terminal_with_fake_shell('echo hi') terminal_with_fake_shell('echo hi')
screen:expect([[ screen:expect([[
@ -208,7 +205,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it("executes a given command through the shell, when 'shell' has arguments", function() it("executes a given command through the shell, when 'shell' has arguments", function()
skip(is_os('win'))
nvim('set_option', 'shell', testprg('shell-test')..' -t jeff') nvim('set_option', 'shell', testprg('shell-test')..' -t jeff')
command('set shellxquote=') -- win: avoid extra quotes command('set shellxquote=') -- win: avoid extra quotes
terminal_with_fake_shell('echo hi') terminal_with_fake_shell('echo hi')
@ -221,7 +217,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it('allows quotes and slashes', function() it('allows quotes and slashes', function()
skip(is_os('win'))
command('set shellxquote=') -- win: avoid extra quotes command('set shellxquote=') -- win: avoid extra quotes
terminal_with_fake_shell([[echo 'hello' \ "world"]]) terminal_with_fake_shell([[echo 'hello' \ "world"]])
screen:expect([[ screen:expect([[
@ -258,7 +253,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it('works with :find', function() it('works with :find', function()
skip(is_os('win'))
terminal_with_fake_shell() terminal_with_fake_shell()
screen:expect([[ screen:expect([[
^ready $ | ^ready $ |
@ -277,7 +271,6 @@ describe(':terminal (with fake shell)', function()
end) end)
it('works with gf', function() it('works with gf', function()
skip(is_os('win'))
command('set shellxquote=') -- win: avoid extra quotes command('set shellxquote=') -- win: avoid extra quotes
terminal_with_fake_shell([[echo "scripts/shadacat.py"]]) terminal_with_fake_shell([[echo "scripts/shadacat.py"]])
retry(nil, 4 * screen.timeout, function() retry(nil, 4 * screen.timeout, function()