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

Unified Diff: tools/safari_factory_reset.py

Issue 2070513002: Revert "Revert "Make Safari tests more robust."" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | « tools/bots/compiler.py ('k') | tools/testing/dart/browser_controller.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/safari_factory_reset.py
diff --git a/tools/safari_factory_reset.py b/tools/safari_factory_reset.py
new file mode 100755
index 0000000000000000000000000000000000000000..9276fa5fee84590ecee32e0b43d7c64e040f0fda
--- /dev/null
+++ b/tools/safari_factory_reset.py
@@ -0,0 +1,27 @@
+#!/usr/bin/env python
+# Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+import os
+import string
+import subprocess
+import sys
+
+import utils
+
+
+def Main():
+ args = sys.argv[1:]
+ tools_dir = os.path.dirname(os.path.realpath(__file__))
+ dart_script_name = os.path.join(
+ tools_dir, 'testing', 'dart', 'reset_safari.dart');
+ command = [utils.CheckedInSdkExecutable(),
+ '--checked', dart_script_name] + args
+ exit_code = subprocess.call(command)
+ utils.DiagnoseExitCode(exit_code, command)
+ return exit_code
+
+
+if __name__ == '__main__':
+ sys.exit(Main())
« no previous file with comments | « tools/bots/compiler.py ('k') | tools/testing/dart/browser_controller.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698