You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Stupid compress issue was in the unit test - but did tighten up the code a bit.
This commit is contained in:
@ -859,6 +859,7 @@ sub BackRestFileTest
|
||||
{
|
||||
system("gzip ${strSourceFile}");
|
||||
$strSourceFile .= ".gz";
|
||||
$strDestinationFile .= ".gz";
|
||||
}
|
||||
|
||||
my $strSourceHash = $oFile->hash(PATH_ABSOLUTE, $strSourceFile);
|
||||
@ -953,15 +954,15 @@ sub BackRestFileTest
|
||||
|
||||
if ($bDestinationCompressed)
|
||||
{
|
||||
system("gzip -d ${strDestinationFileCheck}") or die "could not decompress";
|
||||
system("gzip -d ${strDestinationFileCheck}") == 0 or die "could not decompress ${strDestinationFileCheck}";
|
||||
}
|
||||
|
||||
# my $strDestinationHash = $oFile->hash(PATH_ABSOLUTE, $strDestinationFile);
|
||||
#
|
||||
# if ($strSourceHash ne $strDestinationHash)
|
||||
# {
|
||||
# confess "source ${strSourceHash} and destination ${strDestinationHash} file hashes do not match";
|
||||
# }
|
||||
my $strDestinationHash = $oFile->hash(PATH_ABSOLUTE, $strDestinationFile);
|
||||
|
||||
if ($strSourceHash ne $strDestinationHash)
|
||||
{
|
||||
confess "source ${strSourceHash} and destination ${strDestinationHash} file hashes do not match";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user