mdtest: Bugfix of changed behavior, can only remove dir if all children were deleted.

master
Julian M. Kunkel 2020-07-21 09:31:19 +01:00
parent 8ca388fc78
commit 4258e14c11
1 changed files with 2 additions and 2 deletions

View File

@ -2297,8 +2297,8 @@ mdtest_results_t * mdtest_run(int argc, char **argv, MPI_Comm world_com, FILE *
}
}
if (created_root_dir && backend->rmdir(testdirpath, backend_options) != 0) {
FAIL("Unable to remote test directory path %s", testdirpath);
if (created_root_dir && remove_only && backend->rmdir(testdirpath, backend_options) != 0) {
FAIL("Unable to remove test directory path %s", testdirpath);
}
if(verification_error){