Google
  Web www.spinics.net

[PATCH] tests: add some self-documentation to tests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Alon Levy mentioned on IRC that he tried './qemuxml2argvtest --help'
to figure out how to find which test was failing, but it didn't help.
The information is in HACKING, but it doesn't help to make the tests
also provide their own help.

* tests/testutils.c (virtTestMain): Mention debug trick.
---
 tests/testutils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tests/testutils.c b/tests/testutils.c
index 4e8484f..b1ba94f 100644
--- a/tests/testutils.c
+++ b/tests/testutils.c
@@ -577,7 +577,7 @@ int virtTestMain(int argc,
         progname += 2;
     if (argc > 1) {
         fprintf(stderr, "Usage: %s\n", argv[0]);
+        fputs("Use VIR_TEST_DEBUG=1 in environment for a verbose run\n", stderr);
         return EXIT_FAILURE;
     }
     fprintf(stderr, "TEST: %s\n", progname);
-- 
1.7.7.6

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net