Commit edec627c authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Clean empty directories as well as files

parent 146d84b7
......@@ -465,9 +465,14 @@ def clean_full_paths(names):
if getTestOpts().cleanup != '':
for name in names:
try:
# Remove files...
os.remove(name)
except OSError:
pass
try:
# ... and empty directories
os.rmdir(name)
except OSError:
pass
def do_test(name, way, func, args):
full_name = name + '(' + way + ')'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment