mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
test-tool: Don't print banner when using --help, -V, etc options (RHBZ#879416).
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user