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

Unified Diff: tools/status-file-converter.py

Issue 10919265: First commit of new tools/run-tests.py (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: s/server.py/test-server.py/ in README Created 8 years, 3 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 | « tools/run-tests.py ('k') | tools/test-server.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/status-file-converter.py
diff --git a/samples/SConscript b/tools/status-file-converter.py
old mode 100644
new mode 100755
similarity index 80%
copy from samples/SConscript
copy to tools/status-file-converter.py
index 84c48c9047b694b965319d09f59e3f12491d468e..ba063ee8c74aaac992343d7cf0bec7c5270b0407
--- a/samples/SConscript
+++ b/tools/status-file-converter.py
@@ -1,4 +1,6 @@
-# Copyright 2008 the V8 project authors. All rights reserved.
+#!/usr/bin/env python
+#
+# Copyright 2012 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
@@ -25,14 +27,13 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-from os.path import join
-Import('sample context tools')
-def ConfigureObjectFiles():
- env = Environment(tools=tools)
- env.Replace(**context.flags['sample'])
- context.ApplyEnvOverrides(env)
- return env.Object(sample + '.cc')
+import sys
+from testrunner.local import old_statusfile
+
+if len(sys.argv) != 2:
+ print "Usage: %s foo.status" % sys.argv[0]
+ print "Will read foo.status and print the converted version to stdout."
+ sys.exit(1)
-sample_object = ConfigureObjectFiles()
-Return('sample_object')
+print old_statusfile.ConvertNotation(sys.argv[1]).GetOutput()
« no previous file with comments | « tools/run-tests.py ('k') | tools/test-server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698