[ostree] tests: Add OT_TEST_DEBUG environment variable
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: Add OT_TEST_DEBUG environment variable
- Date: Wed, 9 Nov 2011 11:32:55 +0000 (UTC)
commit 8bda1c6a842a96392fdac17e81cddf226fcbe7c9
Author: Colin Walters <walters verbum org>
Date: Wed Nov 9 05:28:13 2011 -0500
tests: Add OT_TEST_DEBUG environment variable
tests/libtest.sh | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/tests/libtest.sh b/tests/libtest.sh
index f6c889b..8ebedf7 100644
--- a/tests/libtest.sh
+++ b/tests/libtest.sh
@@ -29,6 +29,10 @@ touch "$test_tmpdir/.test$$"
export G_DEBUG=fatal-warnings
+if test -n "${OT_TESTS_DEBUG}"; then
+ set -x
+fi
+
die () {
if test -z "$OT_TESTS_SAVE_TEMPS"; then
test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]