]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
testutils: Print number of failed tests
authorPeter Krempa <pkrempa@redhat.com>
Mon, 3 Apr 2023 11:33:52 +0000 (13:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Jul 2023 12:59:57 +0000 (14:59 +0200)
We can easily report how many tests failed.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tests/testutils.c

index d77b9e8db24bfed8a22f659bf81e87fc56dc18df..e5464229419a42e07fedc515c9af879e06c2c0a5 100644 (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]);
     }