diff --git a/tests/libtest.sh b/tests/libtest.sh index 691e7c34..c09639f4 100644 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -37,7 +37,7 @@ if test -n "$OT_TESTS_VALGRIND"; then fi die () { - if test -z "$OT_TESTS_SAVE_TEMPS"; then + if test -z "$OT_TESTS_DEBUG"; then test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir" else echo "Temporary files saved in $test_tmpdir"