Chromium Code Reviews| Index: tools/test_wrapper.py |
| diff --git a/tools/test_wrapper.py b/tools/test_wrapper.py |
| index be5c03e29fd36239e9c1de13949f5d7148f2827e..341e282adda0e3c58e2f9471ead7aa769697b7ad 100755 |
| --- a/tools/test_wrapper.py |
| +++ b/tools/test_wrapper.py |
| @@ -19,9 +19,17 @@ def Main(): |
| dart_binary = os.path.join(dart_binary_prefix, 'windows', 'dart.exe') |
| else: |
| dart_binary = os.path.join(dart_binary_prefix, GuessOS(), 'dart') |
| - dart_test_script = string.join([tools_dir, 'test.dart'], os.sep) |
| + current_directory = os.path.abspath(''); |
| + client = os.path.abspath(os.path.join(tools_dir, '..')); |
| + if current_directory == os.path.join(client, 'runtime'): |
| + dart_script_name = 'test-runtime.dart' |
| + elif current_directory == os.path.join(client, 'compiler'): |
| + dart_script_name = 'test_compiler.dart' |
|
Søren Gjesse
2012/01/12 13:54:26
test-runtime.dart is with a dash and test_compiler
|
| + else: |
| + dart_script_name = 'test.dart' |
| + dart_test_script = string.join([tools_dir, dart_script_name], os.sep) |
| command = [dart_binary, dart_test_script] + args |
| return subprocess.call(command) |
| if __name__ == '__main__': |
| - sys.exit(Main()) |
| + sys.exit(Main()) |