You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-13 01:00:23 +02:00
Silence chmod warning of empty path when removing unit test data.
This commit is contained in:
@ -170,8 +170,8 @@ testBegin(const char *name)
|
|||||||
// Clear out the test directory so the next test starts clean
|
// Clear out the test directory so the next test starts clean
|
||||||
char buffer[2048];
|
char buffer[2048];
|
||||||
snprintf(
|
snprintf(
|
||||||
buffer, sizeof(buffer), "%schmod -R 700 %s/" "*;%srm -rf %s/" "*", testContainer() ? "sudo " : "", testPath(),
|
buffer, sizeof(buffer), "%schmod -R 700 %s/" "* > /dev/null 2>&1;%srm -rf %s/" "*", testContainer() ? "sudo " : "",
|
||||||
testContainer() ? "sudo " : "", testPath());
|
testPath(), testContainer() ? "sudo " : "", testPath());
|
||||||
|
|
||||||
if (system(buffer) != 0)
|
if (system(buffer) != 0)
|
||||||
{
|
{
|
||||||
@ -182,7 +182,7 @@ testBegin(const char *name)
|
|||||||
|
|
||||||
// Clear out the data directory so the next test starts clean
|
// Clear out the data directory so the next test starts clean
|
||||||
snprintf(
|
snprintf(
|
||||||
buffer, sizeof(buffer), "%schmod -R 700 %s/" "*;%srm -rf %s/" "*", testContainer() ? "sudo " : "",
|
buffer, sizeof(buffer), "%schmod -R 700 %s/" "* > /dev/null 2>&1;%srm -rf %s/" "*", testContainer() ? "sudo " : "",
|
||||||
testDataPath(), testContainer() ? "sudo " : "", testDataPath());
|
testDataPath(), testContainer() ? "sudo " : "", testDataPath());
|
||||||
|
|
||||||
if (system(buffer) != 0)
|
if (system(buffer) != 0)
|
||||||
|
Reference in New Issue
Block a user