Author: kpvdr
Date: 2008-07-07 10:17:52 -0400 (Mon, 07 Jul 2008)
New Revision: 2178
Modified:
store/trunk/cpp/tests/system_test.sh
Log:
Fixed script so that system test will fail if broker fails to start
Modified: store/trunk/cpp/tests/system_test.sh
===================================================================
--- store/trunk/cpp/tests/system_test.sh 2008-07-05 20:14:45 UTC (rev 2177)
+++ store/trunk/cpp/tests/system_test.sh 2008-07-07 14:17:52 UTC (rev 2178)
@@ -47,13 +47,13 @@
BROKER_OPTS="--no-module-dir --load-module=$LIBBDBSTORE --data-dir=$TMPDIR --auth=no
--wcache-page-size 16"
run_tests() {
for p in `seq 1 8`; do
- $abs_srcdir/start_broker "$@" ${BROKER_OPTS} || return 1
+ $abs_srcdir/start_broker "$@" ${BROKER_OPTS} || { echo "FAIL broker
start"; return 1; }
python "$abs_srcdir/persistence.py" -s "$xml_spec" -b localhost:`cat
qpidd.port` -p $p -r 3 || fail=1;
$abs_srcdir/stop_broker
done
}
echo 'Journal (AIO) persistence...'
-run_tests
+run_tests || fail=1
exit $fail
Show replies by date