diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2014-01-07 21:57:59 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-01-08 16:39:41 +0000 |
commit | 7cc75628eb3d0d3091e7ae1a0b7e742b27259947 (patch) | |
tree | 3e5d43ae1553240248c05c2ffc2b2304606f1292 /util | |
parent | 65825452ba64a103cab267de4376a7f03cd8975a (diff) | |
download | chrome-ec-7cc75628eb3d0d3091e7ae1a0b7e742b27259947.tar.gz |
emulator: Treat unexpected EOF as test failure
Unexpected EOF usually means error in the test code or assertion
failure. In this case, let's treat it as test failure.
BUG=chrome-os-partner:19235
TEST=Check assertion failure fails the test.
BRANCH=None
Change-Id: I9270d223d7252f611673a2c55af0c2d68b6116c4
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/181747
Diffstat (limited to 'util')
-rwxr-xr-x | util/run_host_test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/run_host_test b/util/run_host_test index a12c44053f..c25374b95f 100755 --- a/util/run_host_test +++ b/util/run_host_test @@ -38,7 +38,7 @@ def RunOnce(test_name, log, timeout_secs): return child.expect(EXPECT_LIST) except pexpect.EOF: child.close() - raise + return RESULT_ID_FAIL finally: if child.isalive(): child.kill(signal.SIGTERM) |