diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-09-14 11:20:44 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-09-14 11:39:14 +0200 |
commit | f62eaac14ce1a383d1c372acfb1cc284affd7fe8 (patch) | |
tree | 3e26f15e473d84e3557757e3567f7ebcbf6f91a2 | |
parent | e2e003c4415f65c2755c24e8697a11f0f34f2f94 (diff) | |
download | debvm-f62eaac14ce1a383d1c372acfb1cc284affd7fe8.tar.gz |
tests/create-and-run.sh: Correctly handle an empty $MIRROR
Fixes: d1e2c48b9b39 ("Fix ports mirror (tested on riscv64)")
-rwxr-xr-x | tests/create-and-run.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/create-and-run.sh b/tests/create-and-run.sh index a46de06..26fe4f7 100755 --- a/tests/create-and-run.sh +++ b/tests/create-and-run.sh @@ -33,7 +33,9 @@ case "$RELEASE" in MIRROR=http://archive.debian.org/debian ;; esac -debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- --architectures="$ARCHITECTURE" "$MIRROR" +set -- --architectures="$ARCHITECTURE" +test -n "$MIRROR" && set -- "$@" "$MIRROR" +debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- "$@" SSH_PORT=2222 timeout 300s debvm-run -s "$SSH_PORT" -i "$IMAGE" & |