File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -130,15 +130,17 @@ for binary in $(./build-aux/gen-lists-of-programs.sh --list-progs); do
130130 }
131131done
132132
133+ # Always update the PATH to test the uutils coreutils instead of the GNU coreutils
134+ # This ensures the correct path is used even if the repository was moved or rebuilt in a different location
135+ sed -i " s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR// \/ / \\ / } \$ (PATH_SEPARATOR)'\"\$\$ PATH\" \\ \/" tests/local.mk
136+
133137if test -f gnu-built; then
134138 echo " GNU build already found. Skip"
135139 echo " 'rm -f $( pwd) /gnu-built' to force the build"
136140 echo " Note: the customization of the tests will still happen"
137141else
138142 # Disable useless checks
139143 sed -i ' s|check-texinfo: $(syntax_checks)|check-texinfo:|' doc/local.mk
140- # Change the PATH to test the uutils coreutils instead of the GNU coreutils
141- sed -i " s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR// \/ / \\ / } \$ (PATH_SEPARATOR)'\"\$\$ PATH\" \\ \/" tests/local.mk
142144 ./bootstrap --skip-po
143145 ./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
144146 " $( [ " ${SELINUX_ENABLED} " = 1 ] && echo --with-selinux || echo --without-selinux) "
You can’t perform that action at this time.
0 commit comments