Skip to content

Commit 1472995

Browse files
authored
Merge pull request #7170 from jfinkels/restore-uutils-in-build-script
build: restore uutils in GNU test files
2 parents 9f07d50 + 99ad4aa commit 1472995

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

util/build-gnu.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,16 +181,9 @@ fi
181181
grep -rl 'path_prepend_' tests/* | xargs sed -i 's| path_prepend_ ./src||'
182182

183183
# Use the system coreutils where the test fails due to error in a util that is not the one being tested
184-
sed -i 's|stat|/usr/bin/stat|' tests/touch/60-seconds.sh tests/sort/sort-compress-proc.sh
185-
sed -i 's|ls -|/usr/bin/ls -|' tests/cp/same-file.sh tests/misc/mknod.sh tests/mv/part-symlink.sh
186-
sed -i 's|chmod |/usr/bin/chmod |' tests/du/inacc-dir.sh tests/tail/tail-n0f.sh tests/cp/fail-perm.sh tests/mv/i-2.sh tests/shuf/shuf.sh
187-
sed -i 's|sort |/usr/bin/sort |' tests/ls/hyperlink.sh tests/test/test-N.sh
188-
sed -i 's|split |/usr/bin/split |' tests/factor/factor-parallel.sh
189-
sed -i 's|id -|/usr/bin/id -|' tests/runcon/runcon-no-reorder.sh
190184
sed -i "s|grep '^#define HAVE_CAP 1' \$CONFIG_HEADER > /dev/null|true|" tests/ls/capability.sh
191185
# tests/ls/abmon-align.sh - https://github.com/uutils/coreutils/issues/3505
192-
sed -i 's|touch |/usr/bin/touch |' tests/cp/reflink-perm.sh tests/ls/block-size.sh tests/mv/update.sh tests/ls/ls-time.sh tests/stat/stat-nanoseconds.sh tests/misc/time-style.sh tests/test/test-N.sh tests/ls/abmon-align.sh
193-
sed -i 's|ln -|/usr/bin/ln -|' tests/cp/link-deref.sh
186+
sed -i 's|touch |/usr/bin/touch |' tests/mv/update.sh tests/ls/ls-time.sh tests/misc/time-style.sh tests/test/test-N.sh tests/ls/abmon-align.sh
194187

195188
# our messages are better
196189
sed -i "s|cannot stat 'symlink': Permission denied|not writing through dangling symlink 'symlink'|" tests/cp/fail-perm.sh
@@ -202,8 +195,6 @@ sed -i "s|cannot create regular file 'no-such/': Not a directory|'no-such/' is n
202195
# Our message is better
203196
sed -i "s|warning: unrecognized escape|warning: incomplete hex escape|" tests/stat/stat-printf.pl
204197

205-
sed -i 's|cp |/usr/bin/cp |' tests/mv/hard-2.sh
206-
sed -i 's|paste |/usr/bin/paste |' tests/od/od-endian.sh
207198
sed -i 's|timeout |'"${SYSTEM_TIMEOUT}"' |' tests/tail/follow-stdin.sh
208199

209200
# Add specific timeout to tests that currently hang to limit time spent waiting

0 commit comments

Comments
 (0)