]> sourceware.org Git - lvm2.git/commitdiff
Optionally disable the verbose repeat of a failed test (export
authorPetr Rockai <prokai@redhat.com>
Tue, 13 Apr 2010 07:33:34 +0000 (07:33 +0000)
committerPetr Rockai <prokai@redhat.com>
Tue, 13 Apr 2010 07:33:34 +0000 (07:33 +0000)
LVM_TEST_NOVERBOSE=1).

test/harness.c

index 49a60d8b45f1eedbfe9a1dd837db110da4f39a5c..211a7614e51ce4e01ac657acb15e77c5e5344b63 100644 (file)
@@ -133,6 +133,7 @@ void run(int i, char *f) {
 
 int main(int argc, char **argv) {
        int i;
+       int repeat = getenv("LVM_TEST_NOVERBOSE") ? 0 : 1;
 
        if (argc >= MAX) {
                fprintf(stderr, "Sorry, my head exploded. Please increase MAX.\n");
@@ -168,7 +169,7 @@ int main(int argc, char **argv) {
                run(i, argv[i]);
                if (die)
                        break;
-               if ( s.status[i] == FAILED ) {
+               if ( repeat && s.status[i] == FAILED ) {
                        backup = s;
                        setenv("LVM_TEST_CONFIG", config_debug, 1);
                        run(i, argv[i]);
This page took 0.047042 seconds and 5 git commands to generate.