Simplified the newly added test so that it should stop sporadically
authorWayne Davison <wayned@samba.org>
Sat, 16 Apr 2005 07:34:49 +0000 (07:34 +0000)
committerWayne Davison <wayned@samba.org>
Sat, 16 Apr 2005 07:34:49 +0000 (07:34 +0000)
failing.

testsuite/hardlinks.test

index e44fd45..d5e4db9 100644 (file)
@@ -35,11 +35,9 @@ checkit "$RSYNC -aHivv \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
 rm -rf "$todir"
 
 # Make sure there's nothing wrong with sending a single file with -H
-# enabled (this has had a problem twice now, so we need this).
-mkdir "$chkdir"
-cp -p "$name1" "$chkdir"
-$RSYNC -avvi -f '-! */' "$fromdir/" "$chkdir/"
-checkit "$RSYNC -aHivv \"$name1\" \"$todir/\"" "$chkdir" "$todir"
+# enabled (this has broken twice so far, so we need this test).
+$RSYNC -aHivv "$name1" "$todir/"
+diff $diffopt "$name1" "$todir" || test_fail "solo copy of name1 failed"
 
 # The script would have aborted on error, so getting here means we've won.
 exit 0