autotest: capture core dumps on early exits

Change-Id: Ic1bb518ecd8d5fba42c7f0b86cbf02524c262f0e
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2015-09-25 09:48:11 -07:00
parent 068b20abab
commit 04b615bb1c

View File

@ -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