Skip to content

Commit

Permalink
Merge pull request #5784 from sylvestre/cp-fail
Browse files Browse the repository at this point in the history
Update a GNU test error check -  tests/cp/fail-perm.sh
  • Loading branch information
cakebaker authored Jan 5, 2024
2 parents 9dca071 + 932ea96 commit 2ba9501
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 2ba9501

Please sign in to comment.