You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-15 01:04:37 +02:00
Add optional remove to TEST_STORAGE_EXISTS().
This allows TEST_STORAGE_EXISTS() to be used in most cases where TEST_STORAGE_REMOVE() was used before. Rename TEST_STORAGE_REMOVE() to HRN_STORAGE_REMOVE() now that is is no longer used as a test. Still allow an error when the file is missing just to help keep tests tidy.
This commit is contained in:
@ -2422,9 +2422,9 @@ testRun(void)
|
||||
"compare file list");
|
||||
|
||||
// Remove test files
|
||||
TEST_STORAGE_REMOVE(storagePgWrite(), "base/1/2");
|
||||
TEST_STORAGE_REMOVE(storagePgWrite(), "base/1/3");
|
||||
TEST_STORAGE_REMOVE(storagePgWrite(), "base/1/4");
|
||||
HRN_STORAGE_REMOVE(storagePgWrite(), "base/1/2", .errorOnMissing = true);
|
||||
HRN_STORAGE_REMOVE(storagePgWrite(), "base/1/3", .errorOnMissing = true);
|
||||
HRN_STORAGE_REMOVE(storagePgWrite(), "base/1/4", .errorOnMissing = true);
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user