summaryrefslogtreecommitdiffstats
path: root/test/test-sysusers.sh.in
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-09-27 11:30:17 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-10-01 17:52:51 +0200
commit69a7c5fb1fc5aba77269701ceb417e441ae15f6b (patch)
tree065075a444748e69e646994ef926baa8c3c16a2d /test/test-sysusers.sh.in
parenttest/TEST-21-SYSUSERS: turn into a unit test (diff)
downloadsystemd-69a7c5fb1fc5aba77269701ceb417e441ae15f6b.tar.xz
systemd-69a7c5fb1fc5aba77269701ceb417e441ae15f6b.zip
test-sysusers: sort examples
This shouldn't affect the outcome, but makes outputs easier to compare.
Diffstat (limited to '')
-rwxr-xr-xtest/test-sysusers.sh.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-sysusers.sh.in b/test/test-sysusers.sh.in
index ac07c2145b..b84d6f2d80 100755
--- a/test/test-sysusers.sh.in
+++ b/test/test-sysusers.sh.in
@@ -41,7 +41,7 @@ compare() {
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
# happy tests
-for f in $SOURCE/test-*.input; do
+for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
echo "*** Running $f"
prepare_testdir ${f%.input}
cp $f $TESTDIR/usr/lib/sysusers.d/test.conf
@@ -50,7 +50,7 @@ for f in $SOURCE/test-*.input; do
compare $f ""
done
-for f in $SOURCE/test-*.input; do
+for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
echo "*** Running $f on stdin"
prepare_testdir ${f%.input}
touch $TESTDIR/etc/sysusers.d/test.conf
@@ -59,7 +59,7 @@ for f in $SOURCE/test-*.input; do
compare $f "on stdin"
done
-for f in $SOURCE/test-*.input; do
+for f in $(ls -1 $SOURCE/test-*.input | sort -V); do
echo "*** Running $f on stdin with --replace"
prepare_testdir ${f%.input}
touch $TESTDIR/etc/sysusers.d/test.conf
@@ -98,7 +98,7 @@ compare $SOURCE/inline "(--inline --replace=…)"
rm -f $TESTDIR/etc/sysusers.d/* $TESTDIR/usr/lib/sysusers.d/*
# tests for error conditions
-for f in $SOURCE/unhappy-*.input; do
+for f in $(ls -1 $SOURCE/unhappy-*.input | sort -V); do
echo "*** Running test $f"
prepare_testdir ${f%.input}
cp $f $TESTDIR/usr/lib/sysusers.d/test.conf