From f607580ec5190f7aead8c20653f0c578f4c08258 Mon Sep 17 00:00:00 2001 From: Espen Hagen <2492641+espenhgn@users.noreply.github.com> Date: Wed, 2 Oct 2024 15:41:50 +0200 Subject: [PATCH] should work --- tests/test_container_template.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_container_template.py b/tests/test_container_template.py index 2fc3326..d68c15a 100644 --- a/tests/test_container_template.py +++ b/tests/test_container_template.py @@ -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