summaryrefslogtreecommitdiff
path: root/cpp/src/tests/qpid-test-cluster
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/tests/qpid-test-cluster')
-rwxr-xr-xcpp/src/tests/qpid-test-cluster5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/qpid-test-cluster b/cpp/src/tests/qpid-test-cluster
index d604b5ba17..53d2bf436d 100755
--- a/cpp/src/tests/qpid-test-cluster
+++ b/cpp/src/tests/qpid-test-cluster
@@ -56,6 +56,7 @@ QPIDD_ARGS="$QPIDD_ARGS $*"
if test -n "$CONF_FILE"; then
copyall $CONF_FILE
QPIDD_ARGS="$QPIDD_ARGS --config $CONF_FILE"
+ QPID_PORT=${QPID_PORT:-`awk -F= '/^ *port=/ {print $2}' $CONF_FILE`}
fi
if test -n "$ENV_FILE"; then
copyall $ENV_FILE
@@ -76,9 +77,9 @@ do_stop() {
}
do_check() {
-# FIXME aconway 2010-09-29: add check - get port from config.
for h in $HOSTS; do
- if qpid-ping -b $h -q $OPTS &> /dev/null; then
+ test -n "$QPID_PORT" && PORTOPT="-p $QPID_PORT"
+ if qpid-ping -b $h $PORTOPT -q $* &> /dev/null; then
echo $h ok
else
echo $h failed