summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-10-08 14:57:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:59 -0500
commit20d1ab47f81fbcaec208dccefed344553aeb66f3 (patch)
tree42738885ace9ee2a7a71c8f789fa7e64fdf02a76
parentdae6a2453250b01079d2064bcb0cac48a2e5d1e5 (diff)
downloadsamba-20d1ab47f81fbcaec208dccefed344553aeb66f3.tar.gz
samba-20d1ab47f81fbcaec208dccefed344553aeb66f3.tar.bz2
samba-20d1ab47f81fbcaec208dccefed344553aeb66f3.zip
r25580: Error out if there are no tests to run.
(This used to be commit eddb663959b62a7170998f1ba0fad59967fcff67)
-rwxr-xr-xsource4/selftest/selftest.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/selftest/selftest.pl b/source4/selftest/selftest.pl
index 5e3f1e0987..a3671b4c89 100755
--- a/source4/selftest/selftest.pl
+++ b/source4/selftest/selftest.pl
@@ -586,6 +586,11 @@ foreach (@opt_testlists) {
push(@todo, read_testlist($_));
}
+if ($#todo == -1) {
+ print STDERR "No tests to run\n";
+ exit(1);
+ }
+
my $suitestotal = $#todo + 1;
my $i = 0;
$| = 1;