You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-05-22 10:15:16 +02:00
Remove test point infrastructure.
82df7e6fand9856fef5updated tests that used test points in preparation for the feature not being available in the C code. Since tests points are no longer used remove the infrastructure. Also remove one stray --test option in mock/all that was essentially a noop but no longer works now that the option has been removed.
This commit is contained in:
@@ -169,8 +169,6 @@ sub backupBegin
|
||||
);
|
||||
|
||||
# Set defaults
|
||||
my $strTest = defined($$oParam{strTest}) ? $$oParam{strTest} : undef;
|
||||
my $fTestDelay = defined($$oParam{fTestDelay}) ? $$oParam{fTestDelay} : .2;
|
||||
my $oExpectedManifest = defined($$oParam{oExpectedManifest}) ? $$oParam{oExpectedManifest} : undef;
|
||||
|
||||
$strComment =
|
||||
@@ -188,19 +186,12 @@ sub backupBegin
|
||||
(defined($$oParam{bStandby}) && $$oParam{bStandby} ? " --backup-standby" : '') .
|
||||
(defined($oParam->{strRepoType}) ? " --repo1-type=$oParam->{strRepoType}" : '') .
|
||||
($strType ne 'incr' ? " --type=${strType}" : '') .
|
||||
' --stanza=' . (defined($oParam->{strStanza}) ? $oParam->{strStanza} : $self->stanza()) . ' backup' .
|
||||
(defined($strTest) ? " --test --test-delay=${fTestDelay} --test-point=" . lc($strTest) . '=y' : ''),
|
||||
' --stanza=' . (defined($oParam->{strStanza}) ? $oParam->{strStanza} : $self->stanza()) . ' backup',
|
||||
{strComment => $strComment, iExpectedExitStatus => $$oParam{iExpectedExitStatus},
|
||||
oLogTest => $self->{oLogTest}, bLogOutput => $self->synthetic()});
|
||||
|
||||
$oExecuteBackup->begin();
|
||||
|
||||
# Return at the test point if one was defined
|
||||
if (defined($strTest))
|
||||
{
|
||||
$oExecuteBackup->end($strTest);
|
||||
}
|
||||
|
||||
# Return from function and log return values if any
|
||||
return logDebugReturn
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user