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 | add12bb4afe149cdf6328ea314aafb03edf72418 (patch) | |
| tree | d9130b6b7274ec3eb334b8894fc36f1c67edfa0a /qpid/cpp/examples/old_api/verify_all | |
| parent | 8dc6bddc9dba67daad2ac149d0a73a624adcf76a (diff) | |
| download | qpid-python-add12bb4afe149cdf6328ea314aafb03edf72418.tar.gz | |
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
Diffstat (limited to 'qpid/cpp/examples/old_api/verify_all')
| -rwxr-xr-x | qpid/cpp/examples/old_api/verify_all | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qpid/cpp/examples/old_api/verify_all b/qpid/cpp/examples/old_api/verify_all index fbe51377b6..e71479d6be 100755 --- a/qpid/cpp/examples/old_api/verify_all +++ b/qpid/cpp/examples/old_api/verify_all @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Licensed to the Apache Software Foundation (ASF) under one @@ -28,6 +28,12 @@ qpidd=$topbuilddir/src/qpidd broker_args=$3 exclude_regexp=$4 +# Use temporary directory if $HOME does not exist +if ! test -e "$HOME"; then + export QPID_DATA_DIR=/tmp/qpid + export QPID_PID_DIR=/tmp/qpid +fi + trap "$qpidd -q" exit QPID_PORT=`$qpidd -dp0 $broker_args` || { echo "Can't run qpidd" ; exit 1; } export QPID_PORT |
