Sometime you know a test is going to crash and produce a LOT of
backtrace, and you already know what it will look like. For those
times you can set
PLEASE_NO_GDB_BACKTRACE=1
and there will be no backtrace, which can save quite a bit of time and
thousands of lines of log file. (In particular, backtraces of Python
programs can take over a minute to complete).
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: David Mulder <dmulder@suse.com>
exit 1
fi
+if [ "x$PLEASE_NO_GDB_BACKTRACE" != "x" ]; then
+ echo "${BASENAME}: Not running debugger because PLEASE_NO_GDB_BACKTRACE is set"
+ exit 0
+fi
+
+
# we want everything on stderr, so the program is not disturbed
exec 1>&2