[rhmessaging-commits] rhmessaging commits: r3380 - store/trunk/cpp/tests/cluster.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Thu May 14 15:11:13 EDT 2009


Author: kpvdr
Date: 2009-05-14 15:11:13 -0400 (Thu, 14 May 2009)
New Revision: 3380

Modified:
   store/trunk/cpp/tests/cluster/run_cluster_tests
Log:
Fixed bad check for QPID_DIR

Modified: store/trunk/cpp/tests/cluster/run_cluster_tests
===================================================================
--- store/trunk/cpp/tests/cluster/run_cluster_tests	2009-05-13 16:47:28 UTC (rev 3379)
+++ store/trunk/cpp/tests/cluster/run_cluster_tests	2009-05-14 19:11:13 UTC (rev 3380)
@@ -52,10 +52,13 @@
     echo $* | newgrp ais
 }
 
+# QPID_DIR is defined for source tree builds because of the --with-qpid-checkout config parameter
 CLUSTER_EXEC=cluster_test
-if test -d ${QPID_DIR}; then
+if test "${QPID_DIR}" -a -d {QPID_DIR} ;  then
+	# Source tree path
 	CLUSTER_DIR=${QPID_DIR}/cpp/src/tests
 else
+	# Path from known installed locations
 	CLUSTER_PATH=`which ${CLUSTER_EXEC}`
 	if test -z ${CLUSTER_PATH} ; then
 		echo "No executable \"${CLUSTER_EXEC}\" found in path"




More information about the rhmessaging-commits mailing list