From 5981fb9e8bd31cd1f9fa52e7aec84772a9a8a96b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 17 Aug 2026 23:00:08 +0200 Subject: [PATCH] gnu/usage_vs_refs.sh checks that all options appear in GNU's texi docs. we have some extra options + we don't need this test --- util/build-gnu.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index f0b582209f4..cb382e3f4b3 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -268,6 +268,10 @@ sed -i "s|# Independent of whether SELinux|return 0\n #|g" init.cfg # making it too restrictive for us sed -i "s|\$PACKAGE_VERSION|[0-9]*|g" tests/rm/fail-2eperm.sh tests/mv/sticky-to-xpart.sh init.cfg +# usage_vs_refs.sh checks that all options appear in GNU's texi docs. +# we have some extra options +sed -i '1s/^/Exit 77\n/' tests/misc/usage_vs_refs.sh + # usage_vs_getopt.sh is heavily modified as it runs all the binaries # with the option -/ is used, clap is returning a better error than GNU's. Adjust the GNU test sed -i -e "s~ grep \" '\*/'\*\" err || framework_failure_~ grep \" '*-/'*\" err || framework_failure_~" tests/misc/usage_vs_getopt.sh