mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
The "should" testing utility should actually only give a warning when the
command fails.
This commit is contained in:
parent
4aa8216d7e
commit
69638ad6b1
@ -8,7 +8,8 @@ int finished(const char *cmd, int status) {
|
||||
if (!strcmp(cmd, "not"))
|
||||
return !status;
|
||||
if (!strcmp(cmd, "should")) {
|
||||
fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
|
||||
if (status)
|
||||
fprintf(stderr, "TEST WARNING: Ignoring command failure.\n");
|
||||
return 0;
|
||||
}
|
||||
return 6;
|
||||
|
Loading…
Reference in New Issue
Block a user