Wrong indentation ensures the fallback where we use file system removal
of test files if the test's tearDown method fails.
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
if os.path.exists(dirpath):
for entry in os.listdir(dirpath):
fullpath = os.path.join(dirpath, entry)
- if os.path.isdir(fullpath):
- import shutil
- shutil.rmtree(fullpath)
- else:
- os.unlink(fullpath)
+ if os.path.isdir(fullpath):
+ import shutil
+ shutil.rmtree(fullpath)
+ else:
+ os.unlink(fullpath)
def ace_dump(self, ace):
for key, value in ace.items():