aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 3b46d2a26..0acef67b4 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -888,6 +888,21 @@ sub singletest {
$serverproblem = serverfortest($testnum);
}
+ if(!$serverproblem) {
+ my @precheck = getpart("client", "precheck");
+ my $cmd = $precheck[0];
+ chomp $cmd;
+ if($cmd) {
+ my @o = `$cmd 2>/dev/null`;
+ if($o[0]) {
+ $serverproblem = 15;
+ $why = $o[0];
+ chomp $why;
+ }
+ }
+ }
+
+
if($serverproblem) {
# there's a problem with the server, don't run
# this particular server, but count it as "skipped"