aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/vm-check.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/vm-check.sh b/tests/vm-check.sh
index d6684ed..5b50ec7 100755
--- a/tests/vm-check.sh
+++ b/tests/vm-check.sh
@@ -79,8 +79,12 @@ eval "$(assert-arg -- "${REMOTE:-}" '-r REMOTE')"
if [ "$SHUTDOWN" = true ]; then
vm down "$HOST"
fi
-vm up "$HOST"
+vm up "$HOST"
untill -m5 -n5 ssh "$HOST" uptime
scp tests/checks/"$TYPE".sh "$HOST":check.sh
ssh "$HOST" sh check.sh "$REMOTE"
+
+if [ "$SHUTDOWN" = true ]; then
+ vm down "$HOST"
+fi