| Index: tools/test_wrapper.py
|
| diff --git a/tools/test_wrapper.py b/tools/test_wrapper.py
|
| index be5c03e29fd36239e9c1de13949f5d7148f2827e..51f945d9cf923973ae3b12ce9bebd89f3bc76fef 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'
|
| + 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())
|
|
|