Skip to content

Commit d88ae88

Browse files
committed
Fix e2e, dropped 'finish()' func
1 parent a385492 commit d88ae88

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test_e2e.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1675,6 +1675,19 @@ fi
16751675
make container REGISTRY=e2e VERSION=$(make -s version)
16761676
make test-tools REGISTRY=e2e
16771677

1678+
function finish() {
1679+
r=$?
1680+
trap "" INT EXIT
1681+
if [[ $r != 0 ]]; then
1682+
echo
1683+
echo "the directory $DIR was not removed as it contains"\
1684+
"log files useful for debugging"
1685+
fi
1686+
remove_containers
1687+
exit $r
1688+
}
1689+
trap finish INT EXIT
1690+
16781691
echo
16791692
echo "test root is $DIR"
16801693
echo

0 commit comments

Comments
 (0)