From 65920fccf17a4e66f99424a2c8491c4301ec1dd7 Mon Sep 17 00:00:00 2001 From: Jordan Borean Date: Tue, 16 Oct 2018 08:07:02 +1000 Subject: [PATCH] ansible-test: run win httptester with bypass policy (#47090) (cherry picked from commit 69e1088ec1e841267594124f97cdc0739048f04f) --- test/runner/lib/executor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runner/lib/executor.py b/test/runner/lib/executor.py index fb2759fe5f3..cc529bf493b 100644 --- a/test/runner/lib/executor.py +++ b/test/runner/lib/executor.py @@ -569,7 +569,8 @@ def command_windows_integration(args): manage.upload("test/runner/setup/windows-httptester.ps1", watcher_path) # need to use -Command as we cannot pass an array of values with -File - script = "powershell.exe -NoProfile -Command .\\%s -Hosts %s" % (watcher_path, ", ".join(HTTPTESTER_HOSTS)) + script = "powershell.exe -NoProfile -ExecutionPolicy Bypass -Command .\\%s -Hosts %s" \ + % (watcher_path, ", ".join(HTTPTESTER_HOSTS)) if args.verbosity > 3: script += " -Verbose" manage.ssh(script, options=ssh_options, force_pty=False)