mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: do not include skipped tests in failedTests
We recognize three return values from tests:
* OK -> 0
* SKIP -> EXIT_AM_SKIP
* ERROR -> anything else
Also check for EXIT_AM_SKIP when building a bitmap of failed tests,
otherwise the skipped tests would be printed in the suggested range
of tests that shoud be re-run.
Reported-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Fixes: cebb468ef5
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
95080cc8b4
commit
bd9dfc58b4
@ -172,7 +172,7 @@ virTestRun(const char *title,
|
||||
fprintf(stderr, "!");
|
||||
}
|
||||
|
||||
if (ret != 0)
|
||||
if (ret != 0 && ret != EXIT_AM_SKIP)
|
||||
ignore_value(virBitmapSetBitExpand(failedTests, testCounter));
|
||||
|
||||
g_unsetenv("VIR_TEST_MOCK_TESTNAME");
|
||||
|
Loading…
Reference in New Issue
Block a user