From d1239516d2cd33ceb90be7a74bd5ea73825c577e Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Sat, 25 Oct 2008 01:45:23 +0000 Subject: 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 --- cpp/src/tests/run_acl_tests | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpp/src') 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 -- cgit v1.2.1