Skip to content

Commit 9dd1027

Browse files
committed
udocker: test with newer version (1.3.1)
1 parent d1aa327 commit 9dd1027

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

tests/test_udocker.py

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,11 @@ def udocker(tmp_path_factory: TempPathFactory) -> str:
2121
docker_install_dir = str(tmp_path_factory.mktemp("udocker"))
2222
with working_directory(docker_install_dir):
2323

24-
url = "https://raw.githubusercontent.com/jorge-lip/udocker-builds/master/tarballs/udocker-1.1.4.tar.gz"
24+
url = "https://github.com/indigo-dc/udocker/releases/download/v1.3.1/udocker-1.3.1.tar.gz"
2525
install_cmds = [
26-
["curl", url, "-o", "./udocker-tarball.tgz"],
27-
["tar", "xzvf", "udocker-tarball.tgz", "udocker"],
28-
[
29-
"bash",
30-
"-c",
31-
"UDOCKER_TARBALL={}/udocker-tarball.tgz ./udocker install".format(
32-
docker_install_dir
33-
),
34-
],
26+
["curl", "-L", url, "-o", "./udocker-tarball.tgz"],
27+
["tar", "xzvf", "udocker-tarball.tgz"],
28+
["./udocker/udocker", "install"],
3529
]
3630

3731
test_environ["UDOCKER_DIR"] = os.path.join(docker_install_dir, ".udocker")
@@ -42,11 +36,11 @@ def udocker(tmp_path_factory: TempPathFactory) -> str:
4236
results = [subprocess.call(cmds, env=test_environ) for cmds in install_cmds]
4337
if sum(results) == 0:
4438
break
45-
subprocess.call(["rm", "./udocker"])
39+
subprocess.call(["rm", "-Rf", "./udocker"])
4640

4741
assert sum(results) == 0
4842

49-
udocker_path = os.path.join(docker_install_dir, "udocker")
43+
udocker_path = os.path.join(docker_install_dir, "udocker/udocker")
5044

5145
return udocker_path
5246

0 commit comments

Comments
 (0)