Skip to content

Commit

Permalink
should work
Browse files Browse the repository at this point in the history
  • Loading branch information
espenhgn committed Oct 2, 2024
1 parent ede9c73 commit f607580
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_container_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ def test_container_template_python_script_from_tempdir():
'''test that the tempdir is working'''
with tempfile.TemporaryDirectory() as d:
os.system(f'cp {cwd}/tests/extras/hello.py {d}/')
custom_mount = f'--mount type=bind,source={d},target=/temp/'
custom_mount = f'--mount type=bind,source={d},target={d}'
call = f'{PREFIX_CUSTOM_MOUNT.format(custom_mount=custom_mount)} ' + \
'/temp/hello.py'
out = subprocess.run(call.split(' '), check=False)
f'{d}/hello.py'
out = subprocess.run(call, shell=True, check=False)
assert out.returncode == 0


Expand Down

0 comments on commit f607580

Please sign in to comment.