1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-02-07 13:42:41 +02:00

Remove useless command/check unit test.

This test was a placeholder and did not provide any coverage, but it did give inconsistent results on different shell versions.
This commit is contained in:
David Steele 2022-06-01 10:13:57 -04:00
parent 29b2a54fcc
commit 148956aed8
2 changed files with 1 additions and 19 deletions

View File

@ -740,7 +740,7 @@ unit:
# ----------------------------------------------------------------------------------------------------------------------------
- name: check
total: 4
total: 3
containerReq: true
coverage:

View File

@ -367,24 +367,6 @@ testRun(void)
TEST_RESULT_VOID(checkPrimary(dbGroup), "primary == NULL");
}
// *****************************************************************************************************************************
if (testBegin("checkManifest()"))
{
argList = strLstNew();
hrnCfgArgRawZ(argList, cfgOptStanza, "test1");
hrnCfgArgRawZ(argList, cfgOptPgPath, TEST_PATH "/pg");
hrnCfgArgKeyRawZ(argList, cfgOptPgHost, 5, "localhost");
hrnCfgArgKeyRawZ(argList, cfgOptPgHostCmd, 5, "pgbackrest-bogus");
hrnCfgArgKeyRawZ(argList, cfgOptPgPath, 5, "/path/to/pg5");
hrnCfgArgKeyRawZ(argList, cfgOptPgHostUser, 5, TEST_USER);
HRN_CFG_LOAD(cfgCmdCheck, argList);
// Placeholder test for manifest
TEST_ERROR(
checkManifest(), UnknownError,
"remote-0 process on 'localhost' terminated unexpectedly [127]: bash: pgbackrest-bogus: command not found");
}
// *****************************************************************************************************************************
if (testBegin("checkDbConfig(), checkArchiveCommand()"))
{