mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 04:25:19 +00:00
tests: add some self-documentation to tests
Alon tried './qemuxml2argvtest --help' to figure out a test failure, but it didn't help. The information is in HACKING, but it doesn't hurt to make the tests also provide their own help. Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
ba97e4edc6
commit
75d155ec26
@ -577,6 +577,10 @@ int virtTestMain(int argc,
|
|||||||
progname += 2;
|
progname += 2;
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
fprintf(stderr, "Usage: %s\n", argv[0]);
|
fprintf(stderr, "Usage: %s\n", argv[0]);
|
||||||
|
fputs("effective environment variables:\n"
|
||||||
|
"VIR_TEST_VERBOSE set to show names of individual tests\n"
|
||||||
|
"VIR_TEST_DEBUG set to show information for debugging failures\n",
|
||||||
|
stderr);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
fprintf(stderr, "TEST: %s\n", progname);
|
fprintf(stderr, "TEST: %s\n", progname);
|
||||||
|
Loading…
Reference in New Issue
Block a user