You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2026-06-20 01:17:49 +02:00
Set noResetLogLevel in config/parse unit tests where required.
This prevents the logging from getting reset so later tests can validate warnings.
This commit is contained in:
@@ -2038,7 +2038,8 @@ testRun(void)
|
||||
strLstAddZ(argList, TEST_COMMAND_BACKUP);
|
||||
hrnCfgArgRawZ(argList, cfgOptStanza, "db");
|
||||
hrnCfgArgKeyRawZ(argList, cfgOptPgPath, 1, "/path/to/1");
|
||||
TEST_RESULT_VOID(cfgParseP(storageTest, strLstSize(argList), strLstPtr(argList)), "load local config");
|
||||
TEST_RESULT_VOID(
|
||||
cfgParseP(storageTest, strLstSize(argList), strLstPtr(argList), .noResetLogLevel = true), "load local config");
|
||||
|
||||
TEST_RESULT_STR_Z(cfgExe(), "pgbackrest", "--cmd not provided; cfgExe() returns " TEST_BACKREST_EXE);
|
||||
|
||||
@@ -2055,9 +2056,11 @@ testRun(void)
|
||||
hrnCfgArgRawZ(argList, cfgOptStanza, "db");
|
||||
hrnCfgArgKeyRawZ(argList, cfgOptPgPath, 1, "/path/to/1");
|
||||
hrnCfgArgRawZ(argList, cfgOptCmd, "pgbackrest_wrapper.sh");
|
||||
TEST_RESULT_VOID(cfgParseP(storageTest, strLstSize(argList), strLstPtr(argList)), "load local config");
|
||||
TEST_RESULT_VOID(
|
||||
cfgParseP(storageTest, strLstSize(argList), strLstPtr(argList), .noResetLogLevel = true), "load local config");
|
||||
|
||||
TEST_RESULT_STR_Z(cfgOptionStr(cfgOptCmd), "pgbackrest_wrapper.sh", "--cmd provided; cmd is returned as pgbackrest_wrapper.sh");
|
||||
TEST_RESULT_STR_Z(
|
||||
cfgOptionStr(cfgOptCmd), "pgbackrest_wrapper.sh", "--cmd provided; cmd is returned as pgbackrest_wrapper.sh");
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
TEST_TITLE("default job retry and valid duplicate options");
|
||||
|
||||
Reference in New Issue
Block a user