[libvirt] [PATCH alt] tests/testutils: advertise VIR_TEST_VERBOSE and VIR_TEST_DEBUG if user attempts to get help

Eric Blake eblake at redhat.com
Tue May 8 17:50:36 UTC 2012


On 05/08/2012 11:46 AM, Alon Levy wrote:
> Signed-off-by: Alon Levy <alevy at redhat.com>
> ---
>  tests/testutils.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/tests/testutils.c b/tests/testutils.c
> index 4e8484f..ada676f 100644
> --- a/tests/testutils.c
> +++ b/tests/testutils.c
> @@ -577,6 +577,10 @@ int virtTestMain(int argc,
>          progname += 2;
>      if (argc > 1) {
>          fprintf(stderr, "Usage: %s\n", argv[0]);
> +        fprintf(stderr,
> +            "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");

Oh, better than mine.  ACK, and I'll push yours.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120508/61db9141/attachment-0001.sig>


More information about the libvir-list mailing list