summaryrefslogtreecommitdiff
path: root/testsuite/executability.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-03 17:55:24 +0000
committerWayne Davison <wayned@samba.org>2006-02-03 17:55:24 +0000
commit6b4392484868937fb0cc5e7b0e4d0c31103fc440 (patch)
tree5d05ae9f5b251865fe4e19412f199099f3cfd70c /testsuite/executability.test
parenteace352b3936baf57185faee6a02ca42964423fb (diff)
downloadrsync-6b4392484868937fb0cc5e7b0e4d0c31103fc440.tar.gz
The calls to check_perms now pass a test number arg and
don't check for failure (it will die on failure).
Diffstat (limited to 'testsuite/executability.test')
-rw-r--r--testsuite/executability.test14
1 files changed, 6 insertions, 8 deletions
diff --git a/testsuite/executability.test b/testsuite/executability.test
index 2f205cd4..cdab0c55 100644
--- a/testsuite/executability.test
+++ b/testsuite/executability.test
@@ -7,8 +7,6 @@
. $srcdir/testsuite/rsync.fns
-set -x
-
# Put some files in the From directory
mkdir "$fromdir"
cat <<EOF >"$fromdir/1"
@@ -25,8 +23,8 @@ chmod 600 "$fromdir/2"
$RSYNC -rvv "$fromdir/" "$todir/"
-check_perms "$todir/1" rwx------ || test_fail "After initial transfer: to/1 should have 700 permissions"
-check_perms "$todir/2" rw------- || test_fail "After initial transfer: to/2 should have 600 permissions"
+check_perms "$todir/1" rwx------ 1
+check_perms "$todir/2" rw------- 1
# Mix up the permissions a bit
chmod 600 "$fromdir/1"
@@ -36,14 +34,14 @@ chmod 604 "$todir/2"
$RSYNC -rvv "$fromdir/" "$todir/"
# No -E, so nothing should have changed
-check_perms "$todir/1" rwx------ || test_fail "After update without -E: to/1 should still have 700 permissions"
-check_perms "$todir/2" rw----r-- || test_fail "After update without -E: to/2 should still have 604 permissions"
+check_perms "$todir/1" rwx------ 2
+check_perms "$todir/2" rw----r-- 2
$RSYNC -rvvE "$fromdir/" "$todir/"
# Now things should have happened!
-check_perms "$todir/1" rw------- || test_fail "After update with -E: to/1 should now have 600 permissions"
-check_perms "$todir/2" rwx---r-x || test_fail "After update with -E: to/2 should now have 705 permissions"
+check_perms "$todir/1" rw------- 3
+check_perms "$todir/2" rwx---r-x 3
# Hooray
exit 0