1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-22 09:57:47 +03:00

Optionally disable the verbose repeat of a failed test (export

LVM_TEST_NOVERBOSE=1).
This commit is contained in:
Petr Rockai 2010-04-13 07:33:34 +00:00
parent cad4999faa
commit 0128c3703a

View 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]);