From 427beabfd9515f22857bd702c2cd65cbfa6df59e Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Tue, 21 Mar 2023 17:39:14 -0300 Subject: tests/vm-check.sh: Shutdown at the end if -x is given --- tests/vm-check.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3