tests: Add OT_TEST_DEBUG environment variable
This commit is contained in:
1 parent
d14568dd2a
commit
8bda1c6a84
1 file changed
+4
@@ -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"
|
||||||
|
|||||||
Reference in new issue
Block a user