Skip to content

Commit c638369

Browse files
author
Dennis Kennetz
committed
removed the part that removes debian match of file
1 parent c13bee8 commit c638369

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

tests/test_singularity.py

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

1717
@needs_singularity
1818
def test_singularity_pullfolder(tmp_path):
19-
for directory, subdir, files in os.walk(os.getcwd()):
20-
for image in files:
21-
if image.startswith("debian"):
22-
os.remove(os.path.join(directory, image))
23-
print("removed image hiding away deep within!")
2419

2520
if "SINGULARITY_PULLFOLDER" in os.environ:
2621
del os.environ["SINGULARITY_PULLFOLDER"]
2722
workdir = tmp_path / "working_dir_new"
2823
workdir.mkdir()
2924
os.chdir(str(workdir))
30-
pull_folder = tmp_path / "pull_folder"
31-
pull_folder.mkdir()
32-
os.environ["SINGULARITY_PULLFOLDER"] = str(pull_folder)
25+
pullfolder = tmp_path / "pull_folder"
26+
pullfolder.mkdir()
27+
os.environ["SINGULARITY_PULLFOLDER"] = str(pullfolder)
3328
if "SINGULARITY_PULLFOLDER" in os.environ:
3429
result_code, stdout, stderr = get_main_output(
3530
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"])
@@ -40,9 +35,9 @@ def test_singularity_pullfolder(tmp_path):
4035
workdir = tmp_path / "working_dir_new"
4136
workdir.mkdir()
4237
os.chdir(str(workdir))
43-
pull_folder = tmp_path / "pull_folder"
44-
pull_folder.mkdir()
45-
os.environ["SINGULARITY_PULLFOLDER"] = str(pull_folder)
38+
pullfolder = tmp_path / "pullfolder"
39+
pullfolder.mkdir()
40+
os.environ["SINGULARITY_PULLFOLDER"] = str(pullfolder)
4641
if "SINGULARITY_PULLFOLDER" in os.environ:
4742
result_code, stdout, stderr = get_main_output(
4843
['--singularity', get_data("tests/sing_pullfolder_test.cwl"), "--message", "hello"])

0 commit comments

Comments
 (0)