1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Only allow --no-cleanup option when a single test is selected.

This commit is contained in:
David Steele 2016-01-15 23:22:30 -05:00
parent 4d12cc233e
commit fce7261536

View File

@ -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 = [];