1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-18 13:21:58 +02:00

doc: tweak tests to avoid false failure with --help

* tests/df/df-output.sh: Use a more relaxed match.
* tests/du/inodes.sh: Likewise.
This commit is contained in:
Pádraig Brady
2026-01-17 18:17:49 +00:00
parent 2dad24adc0
commit 1e72a54ca7
2 changed files with 2 additions and 2 deletions

View File

@@ -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_

View File

@@ -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