Skip to content
Snippets Groups Projects
Commit 2d5eaa31 authored by Amandine  PERRIN's avatar Amandine PERRIN
Browse files

check that genepath is empty if it still exists

parent c5ac2d6b
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,11 @@ def setup_teardown_module():
- remove all log files
- remove directory with generated results
"""
if not os.path.exists(GENEPATH):
if os.path.isdir(GENEPATH):
content = os.listdir(GENEPATH)
for f in content:
assert f.startswith(".fuse")
else:
os.mkdir(GENEPATH)
print("setup")
......
......@@ -40,7 +40,11 @@ def setup_teardown_module():
- remove all log files
- remove directory with generated results
"""
if not os.path.exists(GENEPATH):
if os.path.isdir(GENEPATH):
content = os.listdir(GENEPATH)
for f in content:
assert f.startswith(".fuse")
else:
os.mkdir(GENEPATH)
print("setup")
......
......@@ -37,7 +37,11 @@ def setup_teardown_module():
- remove all log files
- remove directory with generated results
"""
if not os.path.exists(GENEPATH):
if os.path.isdir(GENEPATH):
content = os.listdir(GENEPATH)
for f in content:
assert f.startswith(".fuse")
else:
os.mkdir(GENEPATH)
print("setup")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment