From 182008452381c126fb41984aa392b8b6e9010974 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 21 Feb 2011 12:48:48 +0100 Subject: s3:tests: move the log directory of the smbclient_s3 test to st/ And use a proper mktemp call to create a unique name. The old location under /tmp/ was bad. Autobuild-User: Michael Adam Autobuild-Date: Mon Feb 21 13:39:06 CET 2011 on sn-devel-104 --- source3/script/tests/test_smbclient_s3.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'source3/script/tests') diff --git a/source3/script/tests/test_smbclient_s3.sh b/source3/script/tests/test_smbclient_s3.sh index 08ed3b7729..a7c07753ad 100755 --- a/source3/script/tests/test_smbclient_s3.sh +++ b/source3/script/tests/test_smbclient_s3.sh @@ -389,15 +389,16 @@ test_ccache_access() $WBINFO --logoff } -LOGDIR=/tmp/log.test_smbclient_s3.$$ +LOGDIR_PREFIX=test_smbclient_s3 -testit "rm -rf $LOGDIR" \ - rm -rf $LOGDIR || \ - exit 1 +# possibly remove old logdirs: + +for OLDDIR in $(find ${PREFIX} -type d -name "${LOGDIR_PREFIX}_*") ; do + echo "removing old directory ${OLDDIR}" + rm -rf ${OLDDIR} +done -testit "mkdir -p $LOGDIR" \ - mkdir -p $LOGDIR || \ - exit 1 +LOGDIR=$(mktemp -d --tmpdir=$PREFIX ${LOGDIR_PREFIX}_XXXX) testit "smbclient -L $SERVER_IP" $SMBCLIENT $CONFIGURATION -L $SERVER_IP -N -p 139 || failed=`expr $failed + 1` -- cgit