Skip to content

Commit 4243d8e

Browse files
author
Dennis Kennetz
committed
added search for image file prior to running code if image persists.
1 parent 56410f8 commit 4243d8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_singularity.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616

1717
@needs_singularity
1818
def test_singularity_pullfolder(tmp_path):
19+
for directory, subdir, files in os.walk(os.getcwd()):
20+
if 'debian.img' in files:
21+
os.remove(os.path.join(directory, files))
22+
print("removed image hiding away deep within!")
23+
1924
if "SINGULARITY_PULLFOLDER" in os.environ:
2025
del os.environ["SINGULARITY_PULLFOLDER"]
2126
workdir = tmp_path / "working_dir_new"

0 commit comments

Comments
 (0)