1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-09-16 09:06:18 +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
2 changed files with 21 additions and 3 deletions

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.