mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-05 21:31:36 +00:00
[LibOS] test/ltp: Make sure we add all results to XML
An early return caused the runner to skip writing the test cases that passed, but had no 'must-pass' list specified. This seems unintentional and caused the runner to lose information about results.
This commit is contained in:
@@ -313,12 +313,10 @@ class TestRunner:
|
||||
returncode = await self._run_cmd()
|
||||
|
||||
must_pass = self.cfgsection.getintset('must-pass')
|
||||
if must_pass is None:
|
||||
if returncode != 0:
|
||||
raise Fail('returncode={}'.format(returncode))
|
||||
return
|
||||
|
||||
self._parse_test_output(must_pass)
|
||||
if must_pass is not None:
|
||||
self._parse_test_output(must_pass)
|
||||
elif returncode != 0:
|
||||
raise Fail('returncode={}'.format(returncode))
|
||||
|
||||
except AbnormalTestResult as result:
|
||||
result.apply_to(self)
|
||||
|
||||
Reference in New Issue
Block a user