diff options
author | Pavel Březina <pbrezina@redhat.com> | 2014-02-18 13:41:21 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-02-18 22:59:26 +0100 |
commit | a37bd3e4ad3e65c7011f29384f54aa15ac3311aa (patch) | |
tree | 7959da8130789b2623b7c9c01b92d51b1df5ca1e /src/tests/common_dom.c | |
parent | e046ae03d0f55b1c8b0ec2fa6139bf86a3449adf (diff) | |
download | sssd-a37bd3e4ad3e65c7011f29384f54aa15ac3311aa.tar.gz sssd-a37bd3e4ad3e65c7011f29384f54aa15ac3311aa.tar.xz sssd-a37bd3e4ad3e65c7011f29384f54aa15ac3311aa.zip |
tests: don't print debug message when test dir does not exist
We delete the test dir before a new test suit is started, to make
sure there is no garbage left. The test dir is usually already
deleted so in most runs a noisy debug message is printed.
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/tests/common_dom.c')
-rw-r--r-- | src/tests/common_dom.c | 2 |
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)); |