diff --git a/script/test/cri-integration.sh b/script/test/cri-integration.sh index 5c50d207e..133e0d0be 100755 --- a/script/test/cri-integration.sh +++ b/script/test/cri-integration.sh @@ -21,6 +21,8 @@ set -o pipefail basedir="$(dirname "${BASH_SOURCE[0]}")" source "${basedir}/utils.sh" +trap test_teardown EXIT + ROOT="$( cd "${basedir}" && pwd )"/../.. cd "${ROOT}" @@ -46,6 +48,4 @@ ${sudo} bin/cri-integration.test --test.run="${FOCUS}" --test.v \ test_exit_code=$? -test_teardown - exit ${test_exit_code}