aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-03-08 20:50:32 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-03-26 01:45:37 -0400
commitcf4fbb6f044c6aaae0a3009c5415eae6a125fd26 (patch)
tree23ab17e8622fd680fc2913bd1bf33a67c6822f88 /test/functional/helpers.lua
parentf8d2aef4f20887bb5a407b5a34cd5dc29fc6771c (diff)
downloadrneovim-cf4fbb6f044c6aaae0a3009c5415eae6a125fd26.tar.gz
rneovim-cf4fbb6f044c6aaae0a3009c5415eae6a125fd26.tar.bz2
rneovim-cf4fbb6f044c6aaae0a3009c5415eae6a125fd26.zip
test: win: use powershell for Start-Sleep only
cmd.exe (shell) is faster and more reliable than powershell (.NET frontend). It's best for short and basic tests that don't require non-trivial scripting. cmd.exe doesn't support sleep so use powershell's Start-Sleep as substitute.
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index b8d912114d..f2f5a6220c 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -425,7 +425,7 @@ end
local function set_shell_powershell()
source([[
set shell=powershell shellquote=( shellpipe=\| shellredir=> shellxquote=
- set shellcmdflag=-NoLogo\ -NoProfile\ -ExecutionPolicy\ RemoteSigned\ -Command
+ let &shellcmdflag = '-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command Remove-Item -Force alias:sleep;'
]])
end