Skip to content

Commit 69a7c5f

Browse files
committed
test-sysusers: sort examples
This shouldn't affect the outcome, but makes outputs easier to compare.
1 parent bd7e6aa commit 69a7c5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/test-sysusers.sh.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ compare() {
4141
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
4242

4343
# happy tests
44-
for f in $SOURCE/test-*.input; do
44+
for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
4545
echo "*** Running $f"
4646
prepare_testdir ${f%.input}
4747
cp $f $TESTDIR/usr/lib/sysusers.d/test.conf
@@ -50,7 +50,7 @@ for f in $SOURCE/test-*.input; do
5050
compare $f ""
5151
done
5252

53-
for f in $SOURCE/test-*.input; do
53+
for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
5454
echo "*** Running $f on stdin"
5555
prepare_testdir ${f%.input}
5656
touch $TESTDIR/etc/sysusers.d/test.conf
@@ -59,7 +59,7 @@ for f in $SOURCE/test-*.input; do
5959
compare $f "on stdin"
6060
done
6161

62-
for f in $SOURCE/test-*.input; do
62+
for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
6363
echo "*** Running $f on stdin with --replace"
6464
prepare_testdir ${f%.input}
6565
touch $TESTDIR/etc/sysusers.d/test.conf
@@ -98,7 +98,7 @@ compare $SOURCE/inline "(--inline --replace=…)"
9898
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
9999

100100
# tests for error conditions
101-
for f in $SOURCE/unhappy-*.input; do
101+
for f in $(ls -1 $SOURCE/unhappy-*.input | sort -V); do
102102
echo "*** Running test $f"
103103
prepare_testdir ${f%.input}
104104
cp $f $TESTDIR/usr/lib/sysusers.d/test.conf

0 commit comments

Comments
 (0)