From add12bb4afe149cdf6328ea314aafb03edf72418 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 2 Nov 2011 14:19:30 +0000 Subject: QPID-3573: handle case where /home/gordon does not exist git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1196597 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/test_env.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src/tests') diff --git a/qpid/cpp/src/tests/test_env.sh.in b/qpid/cpp/src/tests/test_env.sh.in index 842d7729cb..26be15b48a 100644 --- a/qpid/cpp/src/tests/test_env.sh.in +++ b/qpid/cpp/src/tests/test_env.sh.in @@ -72,7 +72,13 @@ exportmodule XML_LIB xml.so # Qpid options export QPID_NO_MODULE_DIR=1 # Don't accidentally load installed modules -export QPID_DATA_DIR= # Default to no data dir, not ~/.qpidd +export QPID_DATA_DIR= + +# Use temporary directory if $HOME does not exist +if [ ! -e "$HOME" ]; then + export QPID_DATA_DIR=/tmp/qpid + export QPID_PID_DIR=/tmp/qpid +fi # Options for boost test framework export BOOST_TEST_SHOW_PROGRESS=yes -- cgit v1.2.1