diff options
author | Gordon Sim <gsim@apache.org> | 2011-11-02 14:19:30 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2011-11-02 14:19:30 +0000 |
commit | 12f5476a7d738ed4a299e11df7c9cff9c4fa7901 (patch) | |
tree | 5dd8ca5580c3bfda003b4b1e55d54d7b3def5091 /cpp/src | |
parent | f372202f9cf85fea7e80695f177ecb14b9fceb9d (diff) | |
download | qpid-python-12f5476a7d738ed4a299e11df7c9cff9c4fa7901.tar.gz |
QPID-3573: handle case where /home/gordon does not exist
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1196597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/tests/test_env.sh.in | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/tests/test_env.sh.in b/cpp/src/tests/test_env.sh.in index 842d7729cb..26be15b48a 100644 --- a/cpp/src/tests/test_env.sh.in +++ b/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 |