You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-09-16 09:06:18 +02:00
Remove test.pl --vm-host option.
This option was once used to optimize bin builds but has been defunct for some time.
This commit is contained in:
@@ -221,7 +221,7 @@ eval
|
||||
|
||||
processBegin(($strVm eq VM_NONE ? "no container" : $strVm) . ' test');
|
||||
processExec(
|
||||
"${strTestExe} --gen-check --log-level-test-file=off --no-coverage-report --vm-host=none --vm-max=2 --vm=${strVm}" .
|
||||
"${strTestExe} --gen-check --log-level-test-file=off --no-coverage-report --vm-max=2 --vm=${strVm}" .
|
||||
(@stryParam != 0 ? " --" . join(" --", @stryParam) : ''),
|
||||
{bShowOutputAsync => true, bOutLogOnError => false});
|
||||
processEnd();
|
||||
|
@@ -52,7 +52,6 @@ sub new
|
||||
$self->{strTestPath},
|
||||
$self->{oTest},
|
||||
$self->{bDryRun},
|
||||
$self->{strVmHost},
|
||||
$self->{bVmOut},
|
||||
$self->{iVmIdx},
|
||||
$self->{iVmMax},
|
||||
@@ -87,7 +86,6 @@ sub new
|
||||
{name => 'strTestPath'},
|
||||
{name => 'oTest'},
|
||||
{name => 'bDryRun'},
|
||||
{name => 'strVmHost'},
|
||||
{name => 'bVmOut'},
|
||||
{name => 'iVmIdx'},
|
||||
{name => 'iVmMax'},
|
||||
@@ -737,7 +735,6 @@ sub run
|
||||
($self->{oTest}->{&TEST_CONTAINER} ? 'docker exec -i -u ' . TEST_USER . " ${strImage} " : '') .
|
||||
abs_path($0) .
|
||||
" --test-path=${strVmTestPath}" .
|
||||
" --vm-host=$self->{strVmHost}" .
|
||||
" --vm=$self->{oTest}->{&TEST_VM}" .
|
||||
" --vm-id=$self->{iVmIdx}" .
|
||||
" --module=" . $self->{oTest}->{&TEST_MODULE} .
|
||||
|
@@ -115,10 +115,6 @@ use constant VM_D9 => 'd9';
|
||||
use constant VM_EXPECT => VM_CO7;
|
||||
push @EXPORT, qw(VM_EXPECT);
|
||||
|
||||
# Defines the host VM (the VM that the containers run in)
|
||||
use constant VM_HOST_DEFAULT => VM_U18;
|
||||
push @EXPORT, qw(VM_HOST_DEFAULT);
|
||||
|
||||
# VM aliases for run matrices (numbered oldest to newest)
|
||||
use constant VM2 => VM_U12;
|
||||
push @EXPORT, qw(VM2);
|
||||
|
12
test/test.pl
12
test/test.pl
@@ -155,7 +155,6 @@ my $bQuiet = false;
|
||||
my $strPgVersion = 'minimal';
|
||||
my $bLogForce = false;
|
||||
my $strVm;
|
||||
my $strVmHost = VM_HOST_DEFAULT;
|
||||
my $bVmBuild = false;
|
||||
my $bVmForce = false;
|
||||
my $bBuildOnly = false;
|
||||
@@ -201,7 +200,6 @@ GetOptions ('q|quiet' => \$bQuiet,
|
||||
'log-level-test-file=s' => \$strLogLevelTestFile,
|
||||
'no-log-timestamp' => \$bNoLogTimestamp,
|
||||
'vm=s' => \$strVm,
|
||||
'vm-host=s' => \$strVmHost,
|
||||
'vm-out' => \$bVmOut,
|
||||
'vm-build' => \$bVmBuild,
|
||||
'vm-force' => \$bVmForce,
|
||||
@@ -1141,11 +1139,11 @@ eval
|
||||
if (!defined($$oyProcess[$iVmIdx]) && $iTestIdx < @{$oyTestRun})
|
||||
{
|
||||
my $oJob = new pgBackRestTest::Common::JobTest(
|
||||
$oStorageTest, $strBackRestBase, $strTestPath, $$oyTestRun[$iTestIdx], $bDryRun, $strVmHost, $bVmOut,
|
||||
$iVmIdx, $iVmMax, $strMakeCmd, $iTestIdx, $iTestMax, $strLogLevel, $strLogLevelTest, $strLogLevelTestFile,
|
||||
!$bNoLogTimestamp, $bLogForce, $bShowOutputAsync, $bNoCleanup, $iRetry, !$bNoValgrind, !$bNoCoverage,
|
||||
$bCoverageSummary, !$bNoOptimize, $bBackTrace, $bProfile, $iScale, $strTimeZone, !$bNoDebug,
|
||||
$bDebugTestTrace, $iBuildMax / $iVmMax < 1 ? 1 : int($iBuildMax / $iVmMax));
|
||||
$oStorageTest, $strBackRestBase, $strTestPath, $$oyTestRun[$iTestIdx], $bDryRun, $bVmOut, $iVmIdx, $iVmMax,
|
||||
$strMakeCmd, $iTestIdx, $iTestMax, $strLogLevel, $strLogLevelTest, $strLogLevelTestFile, !$bNoLogTimestamp,
|
||||
$bLogForce, $bShowOutputAsync, $bNoCleanup, $iRetry, !$bNoValgrind, !$bNoCoverage, $bCoverageSummary,
|
||||
!$bNoOptimize, $bBackTrace, $bProfile, $iScale, $strTimeZone, !$bNoDebug, $bDebugTestTrace,
|
||||
$iBuildMax / $iVmMax < 1 ? 1 : int($iBuildMax / $iVmMax));
|
||||
$iTestIdx++;
|
||||
|
||||
if ($oJob->run())
|
||||
|
Reference in New Issue
Block a user