summaryrefslogtreecommitdiff
path: root/testsuite/hands.test
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-05-18 00:41:46 +0000
committerWayne Davison <wayned@samba.org>2004-05-18 00:41:46 +0000
commit8624daa7f8fb07bd09a3c2106cb0e420ee3da09c (patch)
tree7aba822dbe377c9b20eca4e7b7b80882cf368d3f /testsuite/hands.test
parent3051c46dc31d6e754da0b695a071ccac04f297ee (diff)
downloadrsync-8624daa7f8fb07bd09a3c2106cb0e420ee3da09c.tar.gz
rsync-8624daa7f8fb07bd09a3c2106cb0e420ee3da09c.tar.bz2
rsync-8624daa7f8fb07bd09a3c2106cb0e420ee3da09c.zip
- Use fromdir and todir instead of FROM and TO.
- Quote the dir expansions to avoid problems with spaces.
Diffstat (limited to 'testsuite/hands.test')
-rw-r--r--testsuite/hands.test18
1 files changed, 9 insertions, 9 deletions
diff --git a/testsuite/hands.test b/testsuite/hands.test
index 4430c2a1..0b5d4289 100644
--- a/testsuite/hands.test
+++ b/testsuite/hands.test
@@ -11,19 +11,19 @@ hands_setup
# Main script starts here
-runtest "basic operation" 'checkit "$RSYNC -av ${FROM}/ ${TO}" ${FROM}/ ${TO}'
+runtest "basic operation" 'checkit "$RSYNC -av \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
-ln ${FROM}/filelist ${FROM}/dir
-runtest "hard links" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
+ln "$fromdir/filelist" "$fromdir/dir"
+runtest "hard links" 'checkit "$RSYNC -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
-rm ${TO}/text
-runtest "one file" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
+rm "$todir/text"
+runtest "one file" 'checkit "$RSYNC -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
-echo "extra line" >> ${TO}/text
-runtest "extra data" 'checkit "$RSYNC -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
+echo "extra line" >> "$todir/text"
+runtest "extra data" 'checkit "$RSYNC -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
-cp ${FROM}/text ${TO}/ThisShouldGo
-runtest " --delete" 'checkit "$RSYNC --delete -avH ${FROM}/ ${TO}" ${FROM}/ ${TO}'
+cp "$fromdir/text" "$todir/ThisShouldGo"
+runtest " --delete" 'checkit "$RSYNC --delete -avH \"$fromdir/\" \"$todir\"" "$fromdir/" "$todir"'
# The script would have aborted on error, so getting here means we've won.
exit 0