tests: Small tweaks for local iteration

Support e.g. `-e tests=payload-link`, to choose specific tests for more rapid
iteration, and allow skipping tmpdir cleanup to be able to debug.

Closes: #1509
Approved by: jlebon
This commit is contained in:
Colin Walters authored and Atomic Bot committed 2018-03-22 19:01:52 +00:00
1 parent bb9cd1eb72
commit d2c7c550c1
2 files changed
+5 -1

No files matched your search

+2 -1
View File
@@ -25,7 +25,8 @@ dn=$(dirname $0)
# Copy of bits from tap-test
test_tmpdir=
function _tmpdir_cleanup () {
if test -n "${test_tmpdir}" && test -f ${test_tmpdir}/.testtmp; then
if test -z "${TEST_SKIP_CLEANUP:-}" &&
test -n "${test_tmpdir}" && test -f ${test_tmpdir}/.testtmp; then
rm "${test_tmpdir}" -rf
fi
}