From 7cc75628eb3d0d3091e7ae1a0b7e742b27259947 Mon Sep 17 00:00:00 2001 From: "Vic (Chun-Ju) Yang" Date: Tue, 7 Jan 2014 21:57:59 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/181747 --- util/run_host_test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1