You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-17 01:12:23 +02:00
Test directories are now located on the host VM rather than in the Docker container.
This change allows for easier testing since all files are local on the host VM and can be easily accessed without using `docker exec`. In addition, this change is required to allow multiple Docker containers per test case which is coming soon.
This commit is contained in:
@ -47,14 +47,11 @@ sub BackRestTestFile_Setup
|
||||
system("ssh ${strUserBackRest}\@${strHost} 'rm -rf ${strTestPath}/private'");
|
||||
}
|
||||
|
||||
# Remove the test directory
|
||||
system("rm -rf ${strTestPath}") == 0 or die 'unable to drop test path';
|
||||
# Remove contents of the test directory
|
||||
system("rm -rf ${strTestPath}/*") == 0 or die 'unable to drop test path';
|
||||
|
||||
if (!defined($bDropOnly) || !$bDropOnly)
|
||||
{
|
||||
# Create the test directory
|
||||
mkdir($strTestPath, oct('0770')) or confess 'Unable to create test directory';
|
||||
|
||||
# Create the backrest private directory
|
||||
if (defined($bPrivate) && $bPrivate)
|
||||
{
|
||||
@ -102,8 +99,7 @@ sub BackRestTestFile_Test
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
# Create remotes
|
||||
#-------------------------------------------------------------------------------------------------------------------------------
|
||||
mkdir($strTestPath, oct('0770')) or confess 'Unable to create test directory';
|
||||
mkdir($strTestPath . '/backrest', oct('0770')) or confess 'Unable to create test directory';
|
||||
mkdir($strTestPath . '/backrest', oct('0770')) or confess 'Unable to create backrest directory';
|
||||
|
||||
my $oRemote = new pgBackRest::Protocol::RemoteMaster
|
||||
(
|
||||
|
Reference in New Issue
Block a user