From d47d388474fc7c2e2b446e76b84da08e37d43b5e Mon Sep 17 00:00:00 2001 From: oech3 <79379754+oech3@users.noreply.github.com> Date: Tue, 23 Dec 2025 23:25:58 +0900 Subject: [PATCH] build-gnu.sh: Fail 2 help-version*.sh instead of removing --- util/build-gnu.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/util/build-gnu.sh b/util/build-gnu.sh index c4bfac5600f..53dd6334f9a 100755 --- a/util/build-gnu.sh +++ b/util/build-gnu.sh @@ -153,12 +153,6 @@ else echo "strip t${i}.sh from Makefile" "${SED}" -i -e "s/\$(tf)\/t${i}.sh//g" Makefile done - - # Remove tests checking for --version & --help - # Not really interesting for us and logs are too big - "${SED}" -i -e '/tests\/help\/help-version.sh/ D' \ - -e '/tests\/help\/help-version-getopt.sh/ D' \ - Makefile touch gnu-built fi @@ -166,6 +160,10 @@ grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src| # path_prepend_ sets $abs_path_dir_: set it manually instead. grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g" +# Fail tests checking for --version & --help we can't pass producing too big logs +cp -svf /usr/bin/false tests/help/help-version.sh +cp -svf /usr/bin/false tests/help/help-version-getopt.sh + # We can't build runcon and chcon without libselinux. But GNU no longer builds dummies of them. So consider they are SELinux specific. "${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/runcon/runcon-compute.sh "${SED}" -i 's/^print_ver_.*/require_selinux_/' tests/runcon/runcon-no-reorder.sh