tests: Add OT_TEST_DEBUG environment variable

This commit is contained in:
Colin Walters 2011-11-09 05:28:13 -05:00
parent d14568dd2a
commit 8bda1c6a84
1 changed files with 4 additions and 0 deletions

View File

@ -29,6 +29,10 @@ touch "$test_tmpdir/.test$$"
export G_DEBUG=fatal-warnings export G_DEBUG=fatal-warnings
if test -n "${OT_TESTS_DEBUG}"; then
set -x
fi
die () { die () {
if test -z "$OT_TESTS_SAVE_TEMPS"; then if test -z "$OT_TESTS_SAVE_TEMPS"; then
test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir" test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"