From: Ian Jackson Date: Wed, 11 Jan 2023 00:50:14 +0000 (+0000) Subject: Only do the trap in test-prep X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=77c020a0437480d6ca65d095afdd0838a1100360;p=hippotat.git Only do the trap in test-prep Signed-off-by: Ian Jackson --- diff --git a/adt/acommon b/adt/acommon index b0fdc9b..25e2235 100644 --- a/adt/acommon +++ b/adt/acommon @@ -10,7 +10,8 @@ set -x on_failure=: -trap ' +test-prep () { + trap ' rc=$? : =================== ^^ TEST FAILURE ^^ ==================== set +e @@ -19,7 +20,6 @@ trap ' exit $rc ' 0 -test-prep () { determine-tname adt if [ "$AUTOPKGTEST_TMP" ]; then