You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-01 00:25:06 +02:00
Use more general error code when tablespace linked into PGDATA.
The specific error code was not that useful since we also test the error message which contains details of the link error.
This commit is contained in:
@ -764,7 +764,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid relative tablespace is ../',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
@ -772,7 +772,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid relative tablespace is ..',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
@ -780,7 +780,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid relative tablespace is ../../$PGDATA',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
@ -788,7 +788,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid relative tablespace is ../../$PGDATA',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
@ -809,7 +809,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid relative tablespace in $PGDATA',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
@ -830,7 +830,7 @@ sub run
|
||||
|
||||
$oHostBackup->backup(
|
||||
$strType, 'invalid tablespace in $PGDATA',
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_TABLESPACE_IN_PGDATA});
|
||||
{oExpectedManifest => \%oManifest, iExpectedExitStatus => ERROR_LINK_DESTINATION});
|
||||
|
||||
testFileRemove("${strTblSpcPath}/99999");
|
||||
|
||||
|
Reference in New Issue
Block a user