autotest: capture core dumps on early exits
Change-Id: Ic1bb518ecd8d5fba42c7f0b86cbf02524c262f0e Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
068b20abab
commit
04b615bb1c
@ -10,6 +10,8 @@ if [ $EUID -ne 0 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
trap "process_core; exit 1" SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
timing_enter autotest
|
timing_enter autotest
|
||||||
|
|
||||||
src=$(readlink -f $(dirname $0))
|
src=$(readlink -f $(dirname $0))
|
||||||
@ -49,5 +51,7 @@ fi
|
|||||||
timing_exit autotest
|
timing_exit autotest
|
||||||
chmod a+r $output_dir/timing.txt
|
chmod a+r $output_dir/timing.txt
|
||||||
|
|
||||||
|
trap - SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
# catch any stray core files
|
# catch any stray core files
|
||||||
process_core
|
process_core
|
||||||
|
Loading…
Reference in New Issue
Block a user