]> sourceware.org Git - lvm2.git/commitdiff
Do not repeat a failed test's output when VERBOSE is in effect.
authorPetr Rockai <prockai@redhat.com>
Mon, 7 Nov 2011 17:02:56 +0000 (17:02 +0000)
committerPetr Rockai <prockai@redhat.com>
Mon, 7 Nov 2011 17:02:56 +0000 (17:02 +0000)
test/lib/harness.c

index 31f451a60b750d3ca4cead73b2381b8417b622f8..f1300d7a0a7f8a8308b154a8293c9dff4d3ce56a 100644 (file)
@@ -180,9 +180,11 @@ static void failed(int i, char *f, int st) {
                return;
        }
        printf("FAILED.\n");
-       printf("-- FAILED %s ------------------------------------\n", f);
-       dump();
-       printf("-- FAILED %s (end) ------------------------------\n", f);
+       if (!verbose) {
+               printf("-- FAILED %s ------------------------------------\n", f);
+               dump();
+               printf("-- FAILED %s (end) ------------------------------\n", f);
+       }
 }
 
 static void run(int i, char *f) {
This page took 0.030011 seconds and 5 git commands to generate.