diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-23 14:50:54 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-23 14:50:54 +0000 |
commit | dd4038c8a4f7f1326f0399ea83f48c22a3ce6c2a (patch) | |
tree | 48d9da9a876494fe22c6dcbf844e97f97933e855 | |
parent | 2272cccfd4d78c37ae7fa16369a9893f29533a1a (diff) | |
download | libguestfs-dd4038c8a4f7f1326f0399ea83f48c22a3ce6c2a.tar.gz libguestfs-dd4038c8a4f7f1326f0399ea83f48c22a3ce6c2a.tar.xz libguestfs-dd4038c8a4f7f1326f0399ea83f48c22a3ce6c2a.zip |
test-tool: Don't print banner when using --help, -V, etc options (RHBZ#879416).
-rw-r--r-- | test-tool/test-tool.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c index 67e778b3..abbb1c5b 100644 --- a/test-tool/test-tool.c +++ b/test-tool/test-tool.c @@ -104,17 +104,6 @@ main (int argc, char *argv[]) struct guestfs_version *vers; char *p; - /* Everyone ignores the documentation, so ... */ - printf (" ************************************************************\n" - " * IMPORTANT NOTICE\n" - " *\n" - " * When reporting bugs, include the COMPLETE, UNEDITED\n" - " * output below in your bug report.\n" - " *\n" - " ************************************************************\n" - ); - sleep (3); - /* Create the handle. */ g = guestfs_create (); if (g == NULL) { @@ -165,6 +154,7 @@ main (int argc, char *argv[]) case '?': usage (); + guestfs_set_verbose (g, 0); exit (EXIT_SUCCESS); default: @@ -175,6 +165,17 @@ main (int argc, char *argv[]) } } + /* Everyone ignores the documentation, so ... */ + printf (" ************************************************************\n" + " * IMPORTANT NOTICE\n" + " *\n" + " * When reporting bugs, include the COMPLETE, UNEDITED\n" + " * output below in your bug report.\n" + " *\n" + " ************************************************************\n" + ); + sleep (3); + make_files (); printf ("===== Test starts here =====\n"); |