OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
3 # for details. All rights reserved. Use of this source code is governed by a | 3 # for details. All rights reserved. Use of this source code is governed by a |
4 # BSD-style license that can be found in the LICENSE file. | 4 # BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 import os | 6 import os |
7 import string | 7 import string |
8 import subprocess | 8 import subprocess |
9 import sys | 9 import sys |
10 | 10 |
11 import utils | 11 import utils |
12 | 12 |
13 | 13 |
14 def Main(): | 14 def Main(): |
15 args = sys.argv[1:] | 15 args = sys.argv[1:] |
16 tools_dir = os.path.dirname(os.path.realpath(__file__)) | 16 tools_dir = os.path.dirname(os.path.realpath(__file__)) |
17 dart_script_name = 'test.dart' | 17 dart_script_name = os.path.join('testing', 'dart', 'reset_safari.dart'); |
18 dart_test_script = string.join([tools_dir, dart_script_name], os.sep) | 18 dart_test_script = string.join([tools_dir, dart_script_name], os.sep) |
Bill Hesse
2016/04/25 08:20:18
I would join tools_dir in the os.path.join in the
ahe
2016/05/24 08:44:42
Done.
| |
19 command = [utils.CheckedInSdkExecutable(), | 19 command = [utils.CheckedInSdkExecutable(), |
20 '--checked', dart_test_script] + args | 20 '--checked', dart_test_script] + args |
21 exit_code = subprocess.call(command) | 21 exit_code = subprocess.call(command) |
22 utils.DiagnoseExitCode(exit_code, command) | 22 utils.DiagnoseExitCode(exit_code, command) |
23 return exit_code | 23 return exit_code |
24 | 24 |
25 | 25 |
26 if __name__ == '__main__': | 26 if __name__ == '__main__': |
27 sys.exit(Main()) | 27 sys.exit(Main()) |
OLD | NEW |