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

Unified Diff: scripts/bootstrap/frog_bootstrap_wrapper.py

Issue 8437081: Frog changes (in experimental) to get frog integrated into the test infrastructure. (Closed) Base URL: http://dart.googlecode.com/svn/experimental/frog/
Patch Set: '' Created 9 years, 1 month 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
Index: scripts/bootstrap/frog_bootstrap_wrapper.py
===================================================================
--- scripts/bootstrap/frog_bootstrap_wrapper.py (revision 1140)
+++ scripts/bootstrap/frog_bootstrap_wrapper.py (working copy)
@@ -6,29 +6,21 @@
import sys
HOME = os.path.dirname(os.path.realpath(__file__))
-# TODO(ngeoffray): does not work on Windows.
HOME = os.path.join(HOME, os.pardir, os.pardir)
sys.path.append(HOME)
import frog
def main(args):
- for arg in args:
- index = arg.find('--js_out=')
- if index != -1:
- js_out = arg[9:len(arg)];
+ js_out = args[1]
- exit_code = 0
- if js_out.find('Release') != -1:
- exit_code = frog.main(args)
- else:
- shutil.copy(os.path.join(HOME, 'scripts', 'bootstrap', 'frog_wrapper.py'),
- js_out)
- if exit_code:
- return exit_code
+ # TODO(ngeoffray): Create a script that will run the VM in production mode.
+ # if js_out.find('Release') != -1:
+ shutil.copy(os.path.join(HOME, 'scripts', 'bootstrap', 'frog_wrapper.py'),
+ js_out)
os.chmod(js_out, stat.S_IXUSR | stat.S_IXGRP | stat.S_IRUSR |
stat.S_IRGRP | stat.S_IWUSR)
- return exit_code
+ return 0
if __name__ == '__main__':

Powered by Google App Engine
This is Rietveld 408576698