Revision: 12143
Author:   [email protected]
Date:     Thu Jul 19 03:44:15 2012
Log:      Android test runner: Rename "Error" to "ANDROID"

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

Modified:
 /branches/bleeding_edge/test/message/testcfg.py
 /branches/bleeding_edge/tools/android-run.py

=======================================
--- /branches/bleeding_edge/test/message/testcfg.py     Wed Jul 18 04:55:39 2012
+++ /branches/bleeding_edge/test/message/testcfg.py     Thu Jul 19 03:44:15 2012
@@ -44,7 +44,7 @@
     """Ignore empty lines, valgrind output and Android output."""
     if not str: return True
     return (str.startswith('==') or str.startswith('**') or
-            str.startswith('Error'))
+            str.startswith('ANDROID'))

   def IsFailureOutput(self, output):
     f = file(self.expected)
=======================================
--- /branches/bleeding_edge/tools/android-run.py        Mon Jul 16 09:22:28 2012
+++ /branches/bleeding_edge/tools/android-run.py        Thu Jul 19 03:44:15 2012
@@ -42,7 +42,7 @@
 import tempfile

 def Check(output, errors):
-  failed = any([s.startswith('/system/bin/sh:') or s.startswith('Error')
+  failed = any([s.startswith('/system/bin/sh:') or s.startswith('ANDROID')
                 for s in output.split('\n')])
   return 1 if failed else 0

@@ -92,8 +92,8 @@
   args = [Escape(arg) for arg in sys.argv[1:]]
   script = (" ".join(args) + "\n"
             "case $? in\n"
-            "  0) break;;\n"
-            "  *) echo \"Error returned by test\";;\n"
+            "  0) ;;\n"
+            "  *) echo \"ANDROID: Error returned by test\";;\n"
             "esac\n")
   script = script.replace(workspace, android_workspace)
   script_file = WriteToTemporaryFile(script)

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

Reply via email to