From 04b615bb1c25b7cc7371ee763a38793e0f8fa4dd Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Fri, 25 Sep 2015 09:48:11 -0700 Subject: [PATCH] autotest: capture core dumps on early exits Change-Id: Ic1bb518ecd8d5fba42c7f0b86cbf02524c262f0e Signed-off-by: Daniel Verkamp --- autotest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotest.sh b/autotest.sh index 6834833b4..898e2ac01 100755 --- a/autotest.sh +++ b/autotest.sh @@ -10,6 +10,8 @@ if [ $EUID -ne 0 ]; then exit 1 fi +trap "process_core; exit 1" SIGINT SIGTERM EXIT + timing_enter autotest src=$(readlink -f $(dirname $0)) @@ -49,5 +51,7 @@ fi timing_exit autotest chmod a+r $output_dir/timing.txt +trap - SIGINT SIGTERM EXIT + # catch any stray core files process_core