From 1e72a54ca7bb2f4ff707c84dd9ef36f14212b4d6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Sat, 17 Jan 2026 18:17:49 +0000 Subject: [PATCH] doc: tweak tests to avoid false failure with --help * tests/df/df-output.sh: Use a more relaxed match. * tests/du/inodes.sh: Likewise. --- tests/df/df-output.sh | 2 +- tests/du/inodes.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3