summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsource3/script/tests/test_smbclient_s3.sh15
1 files changed, 8 insertions, 7 deletions
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`