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

Unified Diff: tools/test_wrapper.py

Issue 9139017: Make test_wrapper.py and test_compiler.dart that will work for a deps.compiler checkout. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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
« tools/test_compiler.dart ('K') | « tools/test_compiler.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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())
« tools/test_compiler.dart ('K') | « tools/test_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698