From b801291becd19cd462d683dd3f14b71572c02621 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 12 Sep 2016 03:18:48 +0200 Subject: [PATCH] CI: test: Avoid QuickBuild hang. (#5330) Delete the CWD using nvim instead of the external lua/test runner process. --- test/functional/ex_cmds/cd_spec.lua | 10 ++++------ 1 file 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)