1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Allow any path to be passed to the --test-path option.

A hard-coded path prevented this from working correctly.
This commit is contained in:
Andrey Sokolov 2022-06-01 00:28:58 +03:00 committed by GitHub
parent be354c4890
commit 29b2a54fcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 3 deletions

View File

@ -68,8 +68,6 @@
<release-doc-list>
<release-bug-list>
<release-item>
<github-pull-request id="1749"/>
<release-item-contributor-list>
<release-item-ideator id="francisco.miguel.biete"/>
<release-item-contributor id="david.steele"/>
@ -79,6 +77,21 @@
</release-item>
</release-bug-list>
</release-doc-list>
<release-test-list>
<release-improvement-list>
<release-item>
<github-pull-request id="1764"/>
<release-item-contributor-list>
<release-item-contributor id="andrey.sokolov"/>
<release-item-reviewer id="david.steele"/>
</release-item-contributor-list>
<p>Allow any path to be passed to the <br-setting>--test-path</br-setting> option.</p>
</release-item>
</release-improvement-list>
</release-test-list>
</release>
<release date="2022-05-16" version="2.39" title="Verify and File Bundling">
@ -11247,6 +11260,11 @@
<contributor-id type="github">trinchan</contributor-id>
</contributor>
<contributor id="andrey.sokolov">
<contributor-name-display>Andrey Sokolov</contributor-name-display>
<contributor-id type="github">andr-sokolov</contributor-id>
</contributor>
<contributor id="anton.kurochkin">
<contributor-name-display>Anton Kurochkin</contributor-name-display>
<contributor-id type="github">woblerr</contributor-id>

View File

@ -170,8 +170,8 @@ sub run
&log($self->{bDryRun} && !$self->{bVmOut} || $self->{bShowOutputAsync} ? INFO : DETAIL, "${strTest}" .
(!($self->{bDryRun} || !$self->{bVmOut}) || $self->{bShowOutputAsync} ? "\n" : ''));
my $strVmTestPath = '/home/' . TEST_USER . "/test/${strImage}";
my $strHostTestPath = "$self->{strTestPath}/${strImage}";
my $strVmTestPath = $strHostTestPath;
# Don't create the container if this is a dry run unless output from the VM is required. Output can be requested
# to get more information about the specific tests that will be run.