mirror of https://github.com/octoleo/lsyncd.git
cleanup ssh server when aborting ci run
This commit is contained in:
parent
e5f71ea3ae
commit
938c702525
|
@ -2,6 +2,15 @@
|
||||||
|
|
||||||
set -ex
|
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`
|
SRC=`pwd`
|
||||||
BUILD_FOLDER=`mktemp -d`
|
BUILD_FOLDER=`mktemp -d`
|
||||||
echo "Build folder: $BUILD_FOLDER"
|
echo "Build folder: $BUILD_FOLDER"
|
||||||
|
|
Loading…
Reference in New Issue