aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-04-21 17:19:44 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-04-21 17:19:44 +0000
commit768e3e796e7bbe6e7f2187ba2705907c9386d761 (patch)
tree654eb06ca1ba67ad1ae0e9d25d9e4c2e8eb05956 /tests
parent3869d4a3a7da578a0afd982538b7693a4e4e2dc6 (diff)
Ignore the result of the postcheck command in torture mode
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 3c7fc882a..606c72dd5 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -2102,12 +2102,14 @@ sub singletest {
chomp $cmd;
subVariables \$cmd;
if($cmd) {
+ logmsg "postcheck $cmd\n" if($verbose);
my $rc = runclient("$cmd");
- if($rc != 0) {
+ # Must run the postcheck command in torture mode in order
+ # to clean up, but the result can't be relied upon.
+ if($rc != 0 && !$torture) {
logmsg " postcheck FAILED\n";
return 1;
}
- logmsg "postchecked $cmd\n" if($verbose);
}
# remove the special FTP command file after each test!