diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/FILEFORMAT | 6 | ||||
-rwxr-xr-x | tests/runtests.pl | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index e4be47ab4..8a6f6be83 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -176,9 +176,9 @@ restart servers. <precheck> A command line that if set gets run by the test script before the test. If an -output is displayed by the command, the test will be skipped and the -(single-line) output will be displayed as reason for not running the test. -Variables are substituted as in the <command> section. +output is displayed by the command or if the return code is non-zero, the test +will be skipped and the (single-line) output will be displayed as reason for +not running the test. Variables are substituted as in the <command> section. </precheck> <postcheck> diff --git a/tests/runtests.pl b/tests/runtests.pl index e426b4afd..5456a8732 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -486,6 +486,7 @@ sub torture { else { $ret = runclient($testcmd); } + #logmsg "$_ Returned " . $ret / 256 . "\n"; # Now clear the variable again $ENV{'CURL_MEMLIMIT'} = undef; @@ -1857,6 +1858,8 @@ sub singletest { if($o[0]) { $why = $o[0]; chomp $why; + } elsif($?) { + $why = "precheck command error"; } logmsg "prechecked $cmd\n" if($verbose); } |