Author: aconway
Date: Fri Oct 24 18:45:23 2008
New Revision: 707806
URL: http://svn.apache.org/viewvc?rev=707806&view=rev
Log:
Fix script to clean up data_dir.
Modified:
incubator/qpid/trunk/qpid/cpp/src/tests/run_acl_tests
Modified: incubator/qpid/trunk/qpid/cpp/src/tests/run_acl_tests
URL:
http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/tests/run_acl_tests?rev=707806&r1=707805&r2=707806&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/tests/run_acl_tests (original)
+++ incubator/qpid/trunk/qpid/cpp/src/tests/run_acl_tests Fri Oct 24 18:45:23
2008
@@ -16,7 +16,8 @@
}
if test -d ${PYTHON_DIR} ; then
- mkdir $DATA_DIR
+ rm -rf $DATA_DIR
+ mkdir -p $DATA_DIR
cp $srcdir/policy.acl $DATA_DIR
start_brokers
echo "Running acl tests using brokers on ports $LOCAL_PORT"
@@ -25,9 +26,9 @@
$srcdir/acl.py -v -s $srcdir/../../../specs/amqp.0-10-qpid-errata.xml -b
localhost:$LOCAL_PORT --port $LOCAL_PORT
RETCODE=$?
stop_brokers
+ rm -rf $DATA_DIR
if test x$RETCODE != x0; then
echo "FAIL acl tests"; exit 1;
fi
- rm -rf $DATA_DIR
fi