Revision: 12101
Author:   [email protected]
Date:     Mon Jul 16 09:22:28 2012
Log:      Make android.check work

Review URL: https://chromiumcodereview.appspot.com/10779011
Patch from Haitao Feng <[email protected]>.
http://code.google.com/p/v8/source/detail?r=12101

Modified:
 /branches/bleeding_edge/AUTHORS
 /branches/bleeding_edge/tools/android-run.py

=======================================
--- /branches/bleeding_edge/AUTHORS     Fri Mar 30 08:01:11 2012
+++ /branches/bleeding_edge/AUTHORS     Mon Jul 16 09:22:28 2012
@@ -24,6 +24,7 @@
 Erich Ocean <[email protected]>
 Fedor Indutny <[email protected]>
 Filipe David Manana <[email protected]>
+Haitao Feng <[email protected]>
 Ioseb Dzmanashvili <[email protected]>
 Jan de Mooij <[email protected]>
 Jay Freeman <[email protected]>
=======================================
--- /branches/bleeding_edge/tools/android-run.py        Tue Jul  3 00:45:58 2012
+++ /branches/bleeding_edge/tools/android-run.py        Mon Jul 16 09:22:28 2012
@@ -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

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to