cleanup ssh server when aborting ci run

This commit is contained in:
Daniel Poelzleithner 2021-12-10 12:17:54 +01:00
parent e5f71ea3ae
commit 938c702525
1 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,15 @@
set -ex
function cleanup() {
echo "** abort. cleanup ssh server"
cd `dirname $BASH_SOURCE`/..
# CLEANUP=`dirname $BASH_SOURCE`/../teardown.lua
lua tests/teardown.lua
}
trap cleanup INT EXIT
SRC=`pwd`
BUILD_FOLDER=`mktemp -d`
echo "Build folder: $BUILD_FOLDER"