HTML Plugin: adapt to job status when job has an empty test suite
Currently, when running `avocado run`, the 'HTML RESULT' line is printed, even if the job had no tests in the test suite and did not really run. The reason is that on 856c3b57 the TestSuite() class was introduced, and with that, a different exception started to being raised when an empty test suite was created. When the new exception is handled, the job is set to FAILed, instead of ERRORed. We could change the exception or their handling, but I think this side effect is actually a good thing. A Job with an empty test suite failed to proceed, but did not really ERRORed. ERROR is currently reserved, and used in most cases, when things that are not expected happen, and say, Avocado crashes. Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录