diff options
author | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 23:40:59 +0000 |
---|---|---|
committer | nileshagrawal@chromium.org <nileshagrawal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 23:40:59 +0000 |
commit | d59ce36d0a4f80066fb6a8b7fe9682d32fb0f0bf (patch) | |
tree | 1dd67b90933132a1ca19a302adca5a67073a2a7a | |
parent | 5afebbd81e7b0a2d72b0e37caf7ac35575a5150d (diff) | |
download | chromium_src-d59ce36d0a4f80066fb6a8b7fe9682d32fb0f0bf.zip chromium_src-d59ce36d0a4f80066fb6a8b7fe9682d32fb0f0bf.tar.gz chromium_src-d59ce36d0a4f80066fb6a8b7fe9682d32fb0f0bf.tar.bz2 |
Look for "END" marker while runnig APK tests.
test_package_apk is watching adb logcat and will never see EOF.
BUG=
TEST=
Review URL: http://codereview.chromium.org/10204001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133566 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | build/android/test_package.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/android/test_package.py b/build/android/test_package.py index 0c04377..e4b10e1 100644 --- a/build/android/test_package.py +++ b/build/android/test_package.py @@ -132,16 +132,20 @@ class TestPackage(object): timed_out = False overall_fail = False re_run = re.compile('\[ RUN \] ?(.*)\r\n') + # APK tests rely on the END tag. + re_end = re.compile('\[ END \] ?(.*)\r\n') re_fail = re.compile('\[ FAILED \] ?(.*)\r\n') re_runner_fail = re.compile('\[ RUNNER_FAILED \] ?(.*)\r\n') re_ok = re.compile('\[ OK \] ?(.*)\r\n') (io_stats_before, ready_to_continue) = self._BeginGetIOStats() while ready_to_continue: - found = p.expect([re_run, pexpect.EOF, re_runner_fail], + found = p.expect([re_run, pexpect.EOF, re_end, re_runner_fail], timeout=self.timeout) if found == 1: # matched pexpect.EOF break - if found == 2: # RUNNER_FAILED + if found == 2: # matched END. + break + if found == 3: # RUNNER_FAILED logging.error('RUNNER_FAILED') overall_fail = True break |