We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4243d8e commit a61eebdCopy full SHA for a61eebd
tests/test_singularity.py
@@ -17,9 +17,10 @@
17
@needs_singularity
18
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!")
+ for image in files:
+ if image.startswith("debian"):
+ os.remove(os.path.join(directory, image))
23
+ print("removed image hiding away deep within!")
24
25
if "SINGULARITY_PULLFOLDER" in os.environ:
26
del os.environ["SINGULARITY_PULLFOLDER"]
0 commit comments