Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: tools/testing/dart/browser_controller.dart

Issue 2817553005: Try work around issues executing powershell scripts on windows on the bots (Closed)
Patch Set: Try work around issues executing powershell scripts on windows on the bots Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/testing/dart/browser_controller.dart
diff --git a/tools/testing/dart/browser_controller.dart b/tools/testing/dart/browser_controller.dart
index 9f943cd8fd080059c03eacb4ac32aefb9c540508..9ffaa05566b6998143fe2cd29ff0e4a7aa003bbe 100644
--- a/tools/testing/dart/browser_controller.dart
+++ b/tools/testing/dart/browser_controller.dart
@@ -1907,7 +1907,13 @@ Future captureInternetExplorerScreenshot(String message) async {
final screenshotFile =
Platform.script.resolve('../$screenshotName').toFilePath();
- final args = [powerShellScript, screenshotFile];
+ final args = [
+ '-ExecutionPolicy',
+ 'ByPass',
+ '-File',
+ powerShellScript,
+ screenshotFile
+ ];
final ProcessResult result =
await Process.run('powershell.exe', args, runInShell: true);
if (result.exitCode != 0) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698