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

Unified Diff: frog/frog.py

Issue 9967022: make configurations like frog-none do the right thing: call frog, but don't (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/frog.py
diff --git a/frog/frog.py b/frog/frog.py
index b77c07dbd0fee6ee3397fe4c1c2c2e1f060b87c3..f338ebcc95cf170e55c0a296444b5c96a90ab19e 100755
--- a/frog/frog.py
+++ b/frog/frog.py
@@ -146,10 +146,15 @@ def compileAndRun(options, args, dart):
break
outfile_given = False
+ execute_output = True
for i in range(len(args)):
if args[i].startswith('--out'):
outfile_given = True
outfile = args[i][6:]
+ execute_output = False
+ break;
+ if args[i] == '--compile-only':
+ execute_output = False
break;
if options.verbose: print "nodeArgs %s" % ' '.join(nodeArgs);
@@ -200,7 +205,7 @@ def compileAndRun(options, args, dart):
return exit_code
result = 0
- if not outfile_given:
+ if execute_output:
if not options.html:
if ensureJsEngine(options) != 0:
return 1
@@ -211,8 +216,10 @@ def compileAndRun(options, args, dart):
f.write(HTML)
f.close()
result = execute([browser, outhtml])
- else:
+ elif outfile_given:
print 'Compilation succeded. Code generated in: %s' % outfile
+ else:
+ print 'Compilation succeded.'
if cleanup: shutil.rmtree(workdir)
if result != 0:
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698