OSDN Git Service

Make runtest more fault tolerant on test run failures.
authorBrett Chabot <brettchabot@android.com>
Fri, 22 Jan 2010 01:30:47 +0000 (17:30 -0800)
committerBrett Chabot <brettchabot@android.com>
Fri, 22 Jan 2010 01:33:05 +0000 (17:33 -0800)
Adjust so when running multiple suites, the whole run is not aborted on a
single suite failure.

testrunner/runtest.py

index a4d7231..a3135db 100755 (executable)
@@ -320,7 +320,10 @@ class TestRunner(object):
         self._DoBuild()
 
       for test_suite in self._GetTestsToRun():
-        test_suite.Run(self._options, self._adb)
+        try:
+          test_suite.Run(self._options, self._adb)
+        except errors.WaitForResponseTimedOutError:
+          logger.Log("Timed out waiting for response")
 
     except KeyboardInterrupt:
       logger.Log("Exiting...")