Skip to content

Commit

Permalink
Update a GNU test error check - tests/cp/fail-perm.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Jan 4, 2024
1 parent be81602 commit 932ea96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions util/build-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ sed -i "s|grep '^#define HAVE_CAP 1' \$CONFIG_HEADER > /dev/null|true|" tests/l
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
sed -i 's|ln -|/usr/bin/ln -|' tests/cp/link-deref.sh

# our messages are better
sed -i "s|cannot stat 'symlink': Permission denied|not writing through dangling symlink 'symlink'|" tests/cp/fail-perm.sh
sed -i "s|cp: target directory 'symlink': Permission denied|cp: 'symlink' is not a directory|" tests/cp/fail-perm.sh

# Workaround https://github.com/uutils/coreutils/issues/5766
# to transform an ERROR into FAIL
sed -i 's|xargs mkdir )|xargs mkdir -p )|' tests/cp/link-heap.sh
Expand Down

0 comments on commit 932ea96

Please sign in to comment.