From 8bda1c6a842a96392fdac17e81cddf226fcbe7c9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 9 Nov 2011 05:28:13 -0500 Subject: [PATCH] tests: Add OT_TEST_DEBUG environment variable --- tests/libtest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/libtest.sh b/tests/libtest.sh index f6c889b3..8ebedf7c 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -29,6 +29,10 @@ touch "$test_tmpdir/.test$$" export G_DEBUG=fatal-warnings +if test -n "${OT_TESTS_DEBUG}"; then + set -x +fi + die () { if test -z "$OT_TESTS_SAVE_TEMPS"; then test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"