Skip to content

Commit bb2e062

Browse files
cryptomilkPavel Filipensky
authored andcommitted
testsuite: Reformat shell scripts
shfmt -f testsuite/ | xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <[email protected]> Reviewed-by: Pavel Filipenský <[email protected]>
1 parent db8849e commit bb2e062

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

testsuite/nsswitch/getent_r.sh

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Verify test output. Basically we check to see if all the files generated
44
# in /tmp by the get{pw,gr}ent_r.c and program are identical. If there is
55
# some problem with the re-entrancy of the code then the information in the
6-
# two files will be different.
6+
# two files will be different.
77
#
88

99
TYPE=$1
@@ -13,7 +13,7 @@ FILES="/tmp/${TYPE}_r-${ID}.out-*"
1313
# Sort files
1414

1515
for file in $FILES; do
16-
cat $file | sort > $file.sorted
16+
cat $file | sort >$file.sorted
1717
done
1818

1919
# Diff files
@@ -22,14 +22,13 @@ SORTED="/tmp/${TYPE}_r-${ID}.out-*.sorted"
2222
failed=0
2323

2424
for file1 in $SORTED; do
25-
for file2 in $SORTED; do
26-
if [ $file1 != $file2 ]; then
27-
diff $file1 $file2
28-
fi
29-
done
25+
for file2 in $SORTED; do
26+
if [ $file1 != $file2 ]; then
27+
diff $file1 $file2
28+
fi
29+
done
3030
done
3131

3232
# Clean up
3333

3434
rm -f $SORTED
35-

0 commit comments

Comments
 (0)