e2e: also trap ERR
This commit is contained in:
parent
c62f6cb833
commit
48b006568d
|
|
@ -2251,7 +2251,7 @@ make test-tools REGISTRY=e2e
|
||||||
|
|
||||||
function finish() {
|
function finish() {
|
||||||
r=$?
|
r=$?
|
||||||
trap "" INT EXIT
|
trap "" INT EXIT ERR
|
||||||
if [[ $r != 0 ]]; then
|
if [[ $r != 0 ]]; then
|
||||||
echo
|
echo
|
||||||
echo "the directory $DIR was not removed as it contains"\
|
echo "the directory $DIR was not removed as it contains"\
|
||||||
|
|
@ -2260,7 +2260,7 @@ function finish() {
|
||||||
remove_containers
|
remove_containers
|
||||||
exit $r
|
exit $r
|
||||||
}
|
}
|
||||||
trap finish INT EXIT
|
trap finish INT EXIT ERR
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "test root is $DIR"
|
echo "test root is $DIR"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue