From 9b5a6ea7b718a7c62075aab5b8c70d04ff6b3bf6 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 3 Jan 2024 14:50:02 +0100 Subject: [PATCH] upgrade udocker version used for testing to 1.3.12 --- tests/test_udocker.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_udocker.py b/tests/test_udocker.py index eb9a0ebfe..63ad97191 100644 --- a/tests/test_udocker.py +++ b/tests/test_udocker.py @@ -11,6 +11,7 @@ from .util import get_data, get_main_output, working_directory LINUX = sys.platform in ("linux", "linux2") +UDOCKER_VERSION = "1.3.12" @pytest.fixture(scope="session") @@ -19,10 +20,13 @@ def udocker(tmp_path_factory: TempPathFactory) -> str: test_environ = copy.copy(os.environ) docker_install_dir = str(tmp_path_factory.mktemp("udocker")) with working_directory(docker_install_dir): - url = "https://github.com/indigo-dc/udocker/releases/download/1.3.5/udocker-1.3.5.tar.gz" + url = ( + "https://github.com/indigo-dc/udocker/releases/download/" + f"{UDOCKER_VERSION}/udocker-{UDOCKER_VERSION}.tar.gz" + ) install_cmds = [ ["curl", "-L", url, "-o", "./udocker-tarball.tgz"], - ["tar", "xzvf", "udocker-tarball.tgz"], + ["tar", "--strip-components=1", "-xzvf", "udocker-tarball.tgz"], ["./udocker/udocker", "install"], ]