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

Unified Diff: tools/android-run.py

Issue 10779011: Make android.check work by using case statement in android-run.py (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 5 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 | « AUTHORS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/android-run.py
===================================================================
--- tools/android-run.py (revision 12084)
+++ tools/android-run.py (working copy)
@@ -91,9 +91,10 @@
android_workspace = os.getenv("ANDROID_V8", "/data/local/v8")
args = [Escape(arg) for arg in sys.argv[1:]]
script = (" ".join(args) + "\n"
- "if [ $? -ne 0 ]\n"
- " then echo \"Error returned by test\";\n"
- "fi\n")
+ "case $? in\n"
+ " 0) break;;\n"
+ " *) echo \"Error returned by test\";;\n"
+ "esac\n")
script = script.replace(workspace, android_workspace)
script_file = WriteToTemporaryFile(script)
android_script_file = android_workspace + "/" + script_file
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698