mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
s3/script: Use smbclient deltree to clean up smbclient_tarmode subdir
Replace rm -rf of local dir (that is hosted remotely) with smbclient deltree BUG: https://bugzilla.samba.org/show_bug.cgi?id=14581 Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jeremy Allison
parent
be8dca68f8
commit
fec1f8faff
@ -94,7 +94,7 @@ test_tarmode_creation() {
|
||||
# Clear temp data
|
||||
rm -rf -- "$PREFIX"/tarmode > /dev/null 2>&1
|
||||
rm -f "$PREFIX"/tarmode.tar > /dev/null 2>&1
|
||||
rm -rf "$LOCAL_PATH" > /dev/null 2>&1
|
||||
$SMBCLIENT //$SERVER/tarmode $CONFIGURATION -U$USERNAME%$PASSWORD -c "deltree smbclient_tar"
|
||||
|
||||
# Build the test data
|
||||
if ! create_test_data "$LOCAL_PATH"; then
|
||||
@ -136,7 +136,7 @@ test_tarmode_extraction() {
|
||||
# Clear temp data
|
||||
rm -rf -- "$PREFIX"/tarmode > /dev/null 2>&1
|
||||
rm -f "$PREFIX"/tarmode.tar > /dev/null 2>&1
|
||||
rm -rf "$LOCAL_PATH" > /dev/null 2>&1
|
||||
$SMBCLIENT //$SERVER/tarmode $CONFIGURATION -U$USERNAME%$PASSWORD -c "deltree smbclient_tar"
|
||||
|
||||
# Build the test data
|
||||
if ! create_test_data "$PREFIX/tarmode"; then
|
||||
|
Reference in New Issue
Block a user