Fix e2e, dropped 'finish()' func
This commit is contained in:
parent
a385492d63
commit
d88ae88b34
13
test_e2e.sh
13
test_e2e.sh
|
|
@ -1675,6 +1675,19 @@ fi
|
||||||
make container REGISTRY=e2e VERSION=$(make -s version)
|
make container REGISTRY=e2e VERSION=$(make -s version)
|
||||||
make test-tools REGISTRY=e2e
|
make test-tools REGISTRY=e2e
|
||||||
|
|
||||||
|
function finish() {
|
||||||
|
r=$?
|
||||||
|
trap "" INT EXIT
|
||||||
|
if [[ $r != 0 ]]; then
|
||||||
|
echo
|
||||||
|
echo "the directory $DIR was not removed as it contains"\
|
||||||
|
"log files useful for debugging"
|
||||||
|
fi
|
||||||
|
remove_containers
|
||||||
|
exit $r
|
||||||
|
}
|
||||||
|
trap finish INT EXIT
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "test root is $DIR"
|
echo "test root is $DIR"
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue