summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2022-02-23 12:12:09 +0100
committerPavel Filipensky <pfilipensky@samba.org>2022-08-10 13:17:31 +0000
commitbb2e0622f04355bc3c8ac7dc8d0d6dcf7a66b107 (patch)
tree86125979d0aa22da1ad45ba23b6bd58179dfb88f /testsuite
parentdb8849ea05ec9b5e7a6873d576b3469ddf77f8af (diff)
downloadsamba-bb2e0622f04355bc3c8ac7dc8d0d6dcf7a66b107.tar.gz
testsuite: Reformat shell scripts
shfmt -f testsuite/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/nsswitch/getent_r.sh15
1 files changed, 7 insertions, 8 deletions
diff --git a/testsuite/nsswitch/getent_r.sh b/testsuite/nsswitch/getent_r.sh
index 75dc603f829..981aaf5316d 100755
--- a/testsuite/nsswitch/getent_r.sh
+++ b/testsuite/nsswitch/getent_r.sh
@@ -3,7 +3,7 @@
# Verify test output. Basically we check to see if all the files generated
# in /tmp by the get{pw,gr}ent_r.c and program are identical. If there is
# some problem with the re-entrancy of the code then the information in the
-# two files will be different.
+# two files will be different.
#
TYPE=$1
@@ -13,7 +13,7 @@ FILES="/tmp/${TYPE}_r-${ID}.out-*"
# Sort files
for file in $FILES; do
- cat $file | sort > $file.sorted
+ cat $file | sort >$file.sorted
done
# Diff files
@@ -22,14 +22,13 @@ SORTED="/tmp/${TYPE}_r-${ID}.out-*.sorted"
failed=0
for file1 in $SORTED; do
- for file2 in $SORTED; do
- if [ $file1 != $file2 ]; then
- diff $file1 $file2
- fi
- done
+ for file2 in $SORTED; do
+ if [ $file1 != $file2 ]; then
+ diff $file1 $file2
+ fi
+ done
done
# Clean up
rm -f $SORTED
-