diff --git a/selftests/all/functional/avocado/basic_tests.py b/selftests/all/functional/avocado/basic_tests.py index 5521795e9379f93906c20665dc8c73f197b62830..ca34cba1789f51a57fd8a4014cc761c92d33f162 100644 --- a/selftests/all/functional/avocado/basic_tests.py +++ b/selftests/all/functional/avocado/basic_tests.py @@ -102,6 +102,17 @@ class RunnerOperationTest(unittest.TestCase): output, "Test did not fail with timeout exception") + def test_runner_abort(self): + os.chdir(basedir) + cmd_line = './scripts/avocado --xunit run abort' + result = process.run(cmd_line, ignore_status=True) + expected_rc = 1 + unexpected_rc = 3 + self.assertNotEqual(result.exit_status, unexpected_rc, + "Avocado crashed (rc %d):\n%s" % (unexpected_rc, result)) + self.assertEqual(result.exit_status, expected_rc, + "Avocado did not return rc %d:\n%s" % (expected_rc, result)) + class RunnerDropinTest(unittest.TestCase):