selftests/functional: Ensure no abort error message appears on time out

This way we avoid the bug that was fixed on the previous commit.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 d4ae9dca
...@@ -109,9 +109,10 @@ class RunnerOperationTest(unittest.TestCase): ...@@ -109,9 +109,10 @@ class RunnerOperationTest(unittest.TestCase):
"Avocado crashed (rc %d):\n%s" % (unexpected_rc, result)) "Avocado crashed (rc %d):\n%s" % (unexpected_rc, result))
self.assertEqual(result.exit_status, expected_rc, self.assertEqual(result.exit_status, expected_rc,
"Avocado did not return rc %d:\n%s" % (expected_rc, result)) "Avocado did not return rc %d:\n%s" % (expected_rc, result))
self.assertIn("TestTimeoutError: Timeout reached waiting for", self.assertIn("TestTimeoutError: Timeout reached waiting for", output,
output,
"Test did not fail with timeout exception:\n%s" % output) "Test did not fail with timeout exception:\n%s" % output)
# Ensure no test aborted error messages show up
self.assertNotIn("TestAbortedError: Test aborted unexpectedly", output)
def test_runner_abort(self): def test_runner_abort(self):
os.chdir(basedir) os.chdir(basedir)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册