diff --git a/tests/ci-run.sh b/tests/ci-run.sh index 31a1343..6c8d1ab 100755 --- a/tests/ci-run.sh +++ b/tests/ci-run.sh @@ -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"