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:
@@ -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_
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user