summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/tests/common_dom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/common_dom.c b/src/tests/common_dom.c
index 42bf358a3..053b78ec3 100644
--- a/src/tests/common_dom.c
+++ b/src/tests/common_dom.c
@@ -172,7 +172,7 @@ void test_dom_suite_cleanup(const char *tests_path,
errno = 0;
ret = rmdir(tests_path);
- if (ret != 0) {
+ if (ret != 0 && errno != ENOENT) {
DEBUG(SSSDBG_CRIT_FAILURE,
"Could not delete the test dir (%d) (%s)\n",
errno, strerror(errno));