mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: cp-parents: don't let a failing chmod go unnoticed
* tests/cp/cp-parents: If somehow a chmod set-up command failed, subsequent tests would fail in a harder-to-diagnose manner.
This commit is contained in:
1 parent
e92b0dbc13
commit
6c93cd4512
1 file changed
+1
-1
+1
-1
@@ -46,7 +46,7 @@ cp --parents f/g d 2>/dev/null && fail=1
|
||||
test -d d/f && fail=1
|
||||
|
||||
# Check that re_protect works.
|
||||
chmod go=w d/a
|
||||
chmod go=w d/a || framework_failure_
|
||||
cp -a --parents d/a/b/c e || fail=1
|
||||
cp -a --parents sym/b/c g || fail=1
|
||||
p=`ls -ld e/d|cut -b-10`; case $p in drwxr-xr-x);; *) fail=1;; esac
|
||||
|
||||
Reference in new issue
Block a user