From fce72615366dd5a78359bd05c0919210eb128019 Mon Sep 17 00:00:00 2001 From: David Steele Date: Fri, 15 Jan 2016 23:22:30 -0500 Subject: [PATCH] Only allow --no-cleanup option when a single test is selected. --- test/test.pl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/test.pl b/test/test.pl index 2e9c423ff..487a1dc75 100755 --- a/test/test.pl +++ b/test/test.pl @@ -435,6 +435,13 @@ eval confess &log(ERROR, 'no tests were selected'); } + &log(INFO, $iTestsToRun . ' test' . ($iTestsToRun > 1 ? 's': '') . " selected\n"); + + if ($bNoCleanup && $iTestsToRun > 1) + { + confess &log(ERROR, '--no-cleanup is not valid when more than one test will run') + } + my $iTestFail = 0; my $oyProcess = [];