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:
Peter Krempa 2023-04-03 13:33:52 +02:00
parent c90c97a734
commit 0cbe448977

View File

@ -922,7 +922,7 @@ int virTestMain(int argc,
if (ret == EXIT_FAILURE && !virBitmapIsAllClear(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]);
}