summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/create-and-run.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/create-and-run.sh b/tests/create-and-run.sh
index 1db551d..8d30d7f 100755
--- a/tests/create-and-run.sh
+++ b/tests/create-and-run.sh
@@ -24,7 +24,9 @@ case "$ARCHITECTURE" in
# Booting an armel kernel on qemu is next to impossible.
armel) ARCHITECTURE=armel,armhf ;;
esac
-debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- --architectures="$ARCHITECTURE"
+MIRROR=
+test "$RELEASE" = jessie && MIRROR=http://archive.debian.org/debian
+debvm-create -k "$SSH_KEYPATH.pub" -o "$IMAGE" -r "$RELEASE" -- --architectures="$ARCHITECTURE" $MIRROR
SSH_PORT=2222
timeout 300s debvm-run -s "$SSH_PORT" -i "$IMAGE" &