1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 03:57:44 +00:00

Use system timeout command

This commit is contained in:
James Robson 2021-02-22 09:19:43 +00:00
parent 89f74948e0
commit 16c8b3cbba

View file

@ -45,7 +45,7 @@ jobs:
./bootstrap --gnulib-srcdir="$GNULIB_SRCDIR"
./configure --quiet --disable-gcc-warnings
#Add timeout to to protect against hangs
sed -i -e 's|"\$@|timeout 600 "\$@|' build-aux/test-driver
sed -i -e "s|\"\$@|$(which timeout) 600 \"\$@|" build-aux/test-driver
# Change the PATH in the Makefile to test the uutils coreutils instead of the GNU coreutils
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${BUILDDIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
sed -i 's| tr | /usr/bin/tr |' tests/init.sh