| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """This script runs the Observatory tests in the mojo tree.""" | 6 """This script runs the Observatory tests in the mojo tree.""" |
| 7 | 7 |
| 8 import argparse | 8 import argparse |
| 9 import os | 9 import os |
| 10 import subprocess | 10 import subprocess |
| 11 import sys | 11 import sys |
| 12 | 12 |
| 13 MOJO_SHELL = 'mojo_shell' | 13 MOJO_SHELL = 'mojo_shell' |
| 14 TESTEE = 'mojo:observatory_test_dartzip' | 14 TESTEE = 'mojo:dart_observatory_test' |
| 15 | 15 |
| 16 def main(build_dir, dart_exe, tester_script): | 16 def main(build_dir, dart_exe, tester_script): |
| 17 shell_exe = os.path.join(build_dir, MOJO_SHELL) | 17 shell_exe = os.path.join(build_dir, MOJO_SHELL) |
| 18 subprocess.check_call([ | 18 subprocess.check_call([ |
| 19 dart_exe, | 19 dart_exe, |
| 20 tester_script, | 20 tester_script, |
| 21 shell_exe, | 21 shell_exe, |
| 22 TESTEE | 22 TESTEE |
| 23 ]) | 23 ]) |
| 24 | 24 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 35 parser.add_argument("--dart-exe", | 35 parser.add_argument("--dart-exe", |
| 36 dest="dart_exe", | 36 dest="dart_exe", |
| 37 metavar="<package-name>", | 37 metavar="<package-name>", |
| 38 type=str, | 38 type=str, |
| 39 required=True, | 39 required=True, |
| 40 help="Path to dart executable.") | 40 help="Path to dart executable.") |
| 41 args = parser.parse_args() | 41 args = parser.parse_args() |
| 42 tester_dir = os.path.dirname(os.path.realpath(__file__)) | 42 tester_dir = os.path.dirname(os.path.realpath(__file__)) |
| 43 tester_dart_script = os.path.join(tester_dir, 'tester.dart'); | 43 tester_dart_script = os.path.join(tester_dir, 'tester.dart'); |
| 44 sys.exit(main(args.build_dir, args.dart_exe, tester_dart_script)) | 44 sys.exit(main(args.build_dir, args.dart_exe, tester_dart_script)) |
| OLD | NEW |