1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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 <obnox@samba.org>
Autobuild-Date: Mon Feb 21 13:39:06 CET 2011 on sn-devel-104
This commit is contained in:
Michael Adam 2011-02-21 12:48:48 +01:00
parent 4ee1c7c493
commit 1820084523

View File

@ -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:
testit "mkdir -p $LOGDIR" \
mkdir -p $LOGDIR || \
exit 1
for OLDDIR in $(find ${PREFIX} -type d -name "${LOGDIR_PREFIX}_*") ; do
echo "removing old directory ${OLDDIR}"
rm -rf ${OLDDIR}
done
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`