summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-10-25 01:45:23 +0000
committerAlan Conway <aconway@apache.org>2008-10-25 01:45:23 +0000
commitd1239516d2cd33ceb90be7a74bd5ea73825c577e (patch)
tree87288c26f6cdbcd0cb773a4ca545b02cc40cfad9 /cpp/src
parent36be5a84c58f31d0d8c4348c6d851bdd6fe487a0 (diff)
downloadqpid-python-d1239516d2cd33ceb90be7a74bd5ea73825c577e.tar.gz
Fix script to clean up data_dir.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@707806 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/tests/run_acl_tests5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/tests/run_acl_tests b/cpp/src/tests/run_acl_tests
index b7da8b01b9..11186961b8 100755
--- a/cpp/src/tests/run_acl_tests
+++ b/cpp/src/tests/run_acl_tests
@@ -16,7 +16,8 @@ stop_brokers() {
}
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 @@ if test -d ${PYTHON_DIR} ; then
$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