mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-01-18 04:58:51 +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');
|
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 $iTestFail = 0;
|
||||||
my $oyProcess = [];
|
my $oyProcess = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user