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.
This commit is contained in:
Jan Edmund Lazo
2018-03-08 20:50:32 -05:00
parent f8d2aef4f2
commit cf4fbb6f04
2 changed files with 48 additions and 24 deletions

View File

@@ -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