diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-09-21 09:20:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 09:20:04 +0200 |
commit | ecdd2df88ab52ed6e39057e2a8fb9eabfbb90bd5 (patch) | |
tree | a6072625d7c97b943c4ed5cbfe3d258bd111c23f /test/functional/eval/system_spec.lua | |
parent | ad6bbe44683cf936ec2268ee89e8e1c22f538ecc (diff) | |
download | rneovim-ecdd2df88ab52ed6e39057e2a8fb9eabfbb90bd5.tar.gz rneovim-ecdd2df88ab52ed6e39057e2a8fb9eabfbb90bd5.tar.bz2 rneovim-ecdd2df88ab52ed6e39057e2a8fb9eabfbb90bd5.zip |
shell/logging: Fix E730 with verbose system({List}) #9009
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790
Steps to reproduce:
:set verbose=9
:call system(['echo'])
E730: using List as a String
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r-- | test/functional/eval/system_spec.lua | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua index 0d84f47b65..5cbf34365b 100644 --- a/test/functional/eval/system_spec.lua +++ b/test/functional/eval/system_spec.lua @@ -203,23 +203,13 @@ describe('system()', function() end) it('prints verbose information', function() + screen:try_resize(72, 14) feed(':4verbose echo system("echo hi")<cr>') - screen:expect([[ - | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | - ~ | - | - Calling shell to execute: "echo hi" | - | - hi | - | - Press ENTER or type command to continue^ | - ]]) + if iswin() then + screen:expect{any=[[Executing command: "'cmd.exe' '/s' '/c' '"echo hi"'"]]} + else + screen:expect{any=[[Executing command: "'/[^']*sh' '%-c' 'echo hi'"]]} + end feed('<cr>') end) |