From cf4fbb6f044c6aaae0a3009c5415eae6a125fd26 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 8 Mar 2018 20:50:32 -0500 Subject: 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. --- test/functional/helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/helpers.lua') 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 -- cgit