From d637255f6bf100c18f3171126d72e5ba570e54fd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 22 Apr 2022 15:34:10 +0200 Subject: [PATCH] s3:tests: Reformat test_smb1_shadow_copy_torture.sh shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider Reviewed-by: Guenther Deschner --- .../script/tests/test_smb1_shadow_copy_torture.sh | 46 +++++++++++----------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/source3/script/tests/test_smb1_shadow_copy_torture.sh b/source3/script/tests/test_smb1_shadow_copy_torture.sh index 3cda7ac15af..64a4614b832 100755 --- a/source3/script/tests/test_smb1_shadow_copy_torture.sh +++ b/source3/script/tests/test_smb1_shadow_copy_torture.sh @@ -4,10 +4,10 @@ # if [ $# -lt 7 ]; then -cat < $destdir/foo + echo "$content" >$destdir/foo } # build a snapshots directory build_snapshots() { - local snapdir + local snapdir - snapdir=$WORKDIR/.snapshots + snapdir=$WORKDIR/.snapshots - mkdir -p $snapdir - mkdir $snapdir/$SNAPSHOT + mkdir -p $snapdir + mkdir $snapdir/$SNAPSHOT - build_files $snapdir/$SNAPSHOT + build_files $snapdir/$SNAPSHOT } test_shadow_copy_openroot() { - local msg + local msg - msg=$1 + msg=$1 - #delete snapshots from previous tests - find $WORKDIR -name ".snapshots" -exec rm -rf {} \; 1>/dev/null 2>&1 - build_snapshots + #delete snapshots from previous tests + find $WORKDIR -name ".snapshots" -exec rm -rf {} \; 1>/dev/null 2>&1 + build_snapshots - testit "opening shadow copy root of share over SMB1" \ - $SMBTORTURE \ - -U$USERNAME%$PASSWORD \ - "//$SERVER/shadow_write" \ - --option="torture:twrp_snapshot=$SNAPSHOT" \ - base.smb1-twrp-openroot || \ - failed=`expr $failed + 1` + testit "opening shadow copy root of share over SMB1" \ + $SMBTORTURE \ + -U$USERNAME%$PASSWORD \ + "//$SERVER/shadow_write" \ + --option="torture:twrp_snapshot=$SNAPSHOT" \ + base.smb1-twrp-openroot || + failed=$(expr $failed + 1) } build_files $WORKDIR -- 2.11.4.GIT