tests: Just use OT_TESTS_DEBUG to say "save test data"

This commit is contained in:
Colin Walters 2012-06-21 11:42:45 -04:00
parent 7cce6e5ba1
commit eba0ff75cc

View File

@ -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"