diff options
author | EuAndreh <eu@euandre.org> | 2023-03-21 17:39:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-21 17:39:14 -0300 |
commit | 427beabfd9515f22857bd702c2cd65cbfa6df59e (patch) | |
tree | 69542cb0c0f09ae5e71cdd4650089e15d2461d66 /tests | |
parent | src/bin/paku: Add "debian-packages" action, do not depend on dpkg-scanpackages (diff) | |
download | package-repository-427beabfd9515f22857bd702c2cd65cbfa6df59e.tar.gz package-repository-427beabfd9515f22857bd702c2cd65cbfa6df59e.tar.xz |
tests/vm-check.sh: Shutdown at the end if -x is given
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/vm-check.sh | 6 |
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 |