[hacktree: 3/4] tests: Support saving temporary directory
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hacktree: 3/4] tests: Support saving temporary directory
- Date: Sat, 15 Oct 2011 01:10:58 +0000 (UTC)
commit 5e0d58dd72d34d409066e4a43614b29058194704
Author: Colin Walters <walters verbum org>
Date: Fri Oct 14 21:08:09 2011 -0400
tests: Support saving temporary directory
tests/libtest.sh | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/tests/libtest.sh b/tests/libtest.sh
index ec0bf16..7fc8ed1 100644
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -25,7 +25,11 @@ cd "$test_tmpdir"
touch "$test_tmpdir/.test$$"
die () {
- test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"
+ if test -z "$HT_TESTS_SAVE_TEMPS"; then
+ test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"
+ else
+ echo "Temporary files saved in $test_tmpdir"
+ fi
}
trap 'die' EXIT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]