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:
parent
4d12cc233e
commit
fce7261536
@ -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 = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user