diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-10-08 14:57:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:59 -0500 |
commit | 20d1ab47f81fbcaec208dccefed344553aeb66f3 (patch) | |
tree | 42738885ace9ee2a7a71c8f789fa7e64fdf02a76 /source4 | |
parent | dae6a2453250b01079d2064bcb0cac48a2e5d1e5 (diff) | |
download | samba-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)
Diffstat (limited to 'source4')
-rwxr-xr-x | source4/selftest/selftest.pl | 5 |
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; |