diff options
author | John Szakmeister <john@szakmeister.net> | 2016-05-06 19:53:57 -0400 |
---|---|---|
committer | John Szakmeister <john@szakmeister.net> | 2016-05-06 19:53:57 -0400 |
commit | 508ee7f245fc164f6a3792e69bd744a2f819a362 (patch) | |
tree | 0b2abe6cf3afc5756fe670b5dcd4b6776af796e7 /test/functional/ex_cmds/cd_spec.lua | |
parent | f4979d368c0079288a11e8ec014cf81ad8f6bbba (diff) | |
download | rneovim-508ee7f245fc164f6a3792e69bd744a2f819a362.tar.gz rneovim-508ee7f245fc164f6a3792e69bd744a2f819a362.tar.bz2 rneovim-508ee7f245fc164f6a3792e69bd744a2f819a362.zip |
test/functional: prefix the cd command with silent to prevent hanging
In longer directory paths, the test can hang waiting for the user to hit
enter to continue. Let's use the silent prefix to avoid this.
Diffstat (limited to 'test/functional/ex_cmds/cd_spec.lua')
-rw-r--r-- | test/functional/ex_cmds/cd_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/ex_cmds/cd_spec.lua b/test/functional/ex_cmds/cd_spec.lua index b503eba46e..2c62218d1b 100644 --- a/test/functional/ex_cmds/cd_spec.lua +++ b/test/functional/ex_cmds/cd_spec.lua @@ -53,7 +53,7 @@ for _, cmd in ipairs {'cd', 'chdir'} do eq(0, wlwd()) -- Change tab-local working directory and verify it is different - execute('t' .. cmd .. ' ' .. directories[1]) + execute('silent t' .. cmd .. ' ' .. directories[1]) eq(globalDir .. '/' .. directories[1], cwd()) eq(cwd(), tcwd()) -- working directory maches tab directory eq(1, tlwd()) @@ -65,7 +65,7 @@ for _, cmd in ipairs {'cd', 'chdir'} do eq(1, tlwd()) -- Still tab-local working directory eq(0, wlwd()) -- Still no window-local working directory eq(globalDir .. '/' .. directories[1], cwd()) - execute('l' .. cmd .. ' ../' .. directories[2]) + execute('silent l' .. cmd .. ' ../' .. directories[2]) eq(globalDir .. '/' .. directories[2], cwd()) eq(globalDir .. '/' .. directories[1], tcwd()) eq(1, wlwd()) @@ -83,7 +83,7 @@ for _, cmd in ipairs {'cd', 'chdir'} do eq(0, wlwd()) -- Verify global changes don't affect local ones - execute('' .. cmd .. ' ' .. directories[3]) + execute('silent ' .. cmd .. ' ' .. directories[3]) eq(globalDir .. '/' .. directories[3], cwd()) execute('tabnext') eq(globalDir .. '/' .. directories[1], cwd()) @@ -91,7 +91,7 @@ for _, cmd in ipairs {'cd', 'chdir'} do eq(0, wlwd()) -- Still no window-local directory in this window -- Unless the global change happened in a tab with local directory - execute('' .. cmd .. ' ..') + execute('silent ' .. cmd .. ' ..') eq(globalDir, cwd() ) eq(0 , tlwd()) eq(0 , wlwd()) |