From 48b006568d537661f5566b960312479bea2a22db Mon Sep 17 00:00:00 2001 From: Tim Hockin Date: Wed, 13 Jul 2022 09:44:11 -0700 Subject: [PATCH] e2e: also trap ERR --- test_e2e.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_e2e.sh b/test_e2e.sh index 9002c32..18ac4ff 100755 --- a/test_e2e.sh +++ b/test_e2e.sh @@ -2251,7 +2251,7 @@ make test-tools REGISTRY=e2e function finish() { r=$? - trap "" INT EXIT + trap "" INT EXIT ERR if [[ $r != 0 ]]; then echo echo "the directory $DIR was not removed as it contains"\ @@ -2260,7 +2260,7 @@ function finish() { remove_containers exit $r } -trap finish INT EXIT +trap finish INT EXIT ERR echo echo "test root is $DIR"