mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-08 12:41:29 +00:00
testutils: Print number of failed tests
We can easily report how many tests failed. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
c90c97a734
commit
0cbe448977
@ -922,7 +922,7 @@ int virTestMain(int argc,
|
|||||||
|
|
||||||
if (ret == EXIT_FAILURE && !virBitmapIsAllClear(failedTests)) {
|
if (ret == EXIT_FAILURE && !virBitmapIsAllClear(failedTests)) {
|
||||||
g_autofree char *failed = virBitmapFormat(failedTests);
|
g_autofree char *failed = virBitmapFormat(failedTests);
|
||||||
fprintf(stderr, "Some tests failed. Run them using:\n");
|
fprintf(stderr, "%zu tests failed. Run them using:\n", virBitmapCountBits(failedTests));
|
||||||
fprintf(stderr, "VIR_TEST_DEBUG=1 VIR_TEST_RANGE=%s %s\n", failed, argv[0]);
|
fprintf(stderr, "VIR_TEST_DEBUG=1 VIR_TEST_RANGE=%s %s\n", failed, argv[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user