From: Pádraig Brady
Date: Sat, 17 Jan 2026 18:17:49 +0000 (+0000) Subject: doc: tweak tests to avoid false failure with --help X-Git-Tag: v9.10~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1e72a54ca7bb2f4ff707c84dd9ef36f14212b4d6;p=thirdparty%2Fcoreutils.git doc: tweak tests to avoid false failure with --help * tests/df/df-output.sh: Use a more relaxed match. * tests/du/inodes.sh: Likewise. --- diff --git a/tests/df/df-output.sh b/tests/df/df-output.sh index 6c5fe3c7b1..de062ee783 100755 --- a/tests/df/df-output.sh +++ b/tests/df/df-output.sh @@ -125,7 +125,7 @@ compare exp out2 || fail=1 # Ensure that --output is mentioned in the usage. df --help > out || fail=1 -grep ' --output' out >/dev/null || { fail=1; cat out; } +grep -- '--output' out >/dev/null || { fail=1; cat out; } # Ensure that the FILE field contains the argument. cat <<\EOF > exp || framework_failure_ diff --git a/tests/du/inodes.sh b/tests/du/inodes.sh index 2af2297252..1d2dcd13ee 100755 --- a/tests/du/inodes.sh +++ b/tests/du/inodes.sh @@ -136,5 +136,5 @@ grep ' ineffective ' err >/dev/null || { fail=1; cat out err; } # Ensure that --inodes is mentioned in the usage. du --help > out || fail=1 -grep ' --inodes ' out >/dev/null || { fail=1; cat out; } +grep -- '--inodes' out >/dev/null || { fail=1; cat out; } Exit $fail