mirror of
https://https.git.savannah.gnu.org/git/coreutils.git
synced 2026-01-26 15:29:07 +00:00
tests: avoid false failure with non standard path
* tests/misc/usage_vs_refs.sh: Properly quote arguments to avoid false failure with paths containing spaces etc.
This commit is contained in:
parent
3e57f08e36
commit
bdc45990c7
@ -54,9 +54,9 @@ for prg in $built_programs; do
|
||||
for opt in $(getopts $prg); do
|
||||
got_option=true
|
||||
if ! grep -E "opt(Itemx?|Anchor){$dprg,$opt[,}]" \
|
||||
$abs_top_srcdir/doc/coreutils.texi >/dev/null; then
|
||||
"$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then
|
||||
if ! grep "optItemx\\?{\\\\cmd\\\\,$opt," \
|
||||
$abs_top_srcdir/doc/coreutils.texi >/dev/null; then
|
||||
"$abs_top_srcdir/doc/coreutils.texi" >/dev/null; then
|
||||
printf -- '%s %s reference missing in texi\n' $dprg $opt >&2
|
||||
fail=1
|
||||
elif test "$DEBUG"; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user