diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-09-12 03:18:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-12 03:18:48 +0200 |
commit | b801291becd19cd462d683dd3f14b71572c02621 (patch) | |
tree | 871964678461df57d441dbab83a006f394ab1cb9 | |
parent | 4ceacb37d52289df609a23ecfa8130682e0d55e5 (diff) | |
download | rneovim-b801291becd19cd462d683dd3f14b71572c02621.tar.gz rneovim-b801291becd19cd462d683dd3f14b71572c02621.tar.bz2 rneovim-b801291becd19cd462d683dd3f14b71572c02621.zip |
CI: test: Avoid QuickBuild hang. (#5330)
Delete the CWD using nvim instead of the external lua/test runner process.
-rw-r--r-- | test/functional/ex_cmds/cd_spec.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/functional/ex_cmds/cd_spec.lua b/test/functional/ex_cmds/cd_spec.lua index 85e1a5c5d5..5bf4d22d0f 100644 --- a/test/functional/ex_cmds/cd_spec.lua +++ b/test/functional/ex_cmds/cd_spec.lua @@ -270,20 +270,18 @@ for _, cmd in ipairs {'getcwd', 'haslocaldir'} do end describe("getcwd()", function () - local temp_dir = "Xtest-functional-ex_cmds-cd_spec.temp" before_each(function() clear() - lfs.mkdir(temp_dir) + lfs.mkdir(directories.global) end) after_each(function() - helpers.rmdir(temp_dir) + helpers.rmdir(directories.global) end) it("returns empty string if working directory does not exist", function() - execute("cd " .. temp_dir) - helpers.wait() - helpers.rmdir(temp_dir) + execute("cd "..directories.global) + execute("call delete('../"..directories.global.."', 'd')") eq("", helpers.eval("getcwd()")) end) end) |