Fix e2e, dropped 'finish()' func

This commit is contained in:
Tim Hockin 2022-01-21 19:43:17 -08:00
parent a385492d63
commit d88ae88b34
1 changed files with 13 additions and 0 deletions

View File

@ -1675,6 +1675,19 @@ fi
make container REGISTRY=e2e VERSION=$(make -s version)
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 "test root is $DIR"
echo