Use $diffopt instead of -u.
authorWayne Davison <wayned@samba.org>
Mon, 20 Sep 2004 05:17:57 +0000 (05:17 +0000)
committerWayne Davison <wayned@samba.org>
Mon, 20 Sep 2004 05:17:57 +0000 (05:17 +0000)
testsuite/backup.test

index 5928362..9e4b023 100644 (file)
@@ -26,14 +26,14 @@ echo "Extending the other file" >> "$name2"
 
 checkit "$RSYNC -avv --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
 
-diff -ru "$chkdir" "$bakdir"
+diff -r $diffopt "$chkdir" "$bakdir"
 
 echo "Extending the file again" >> "$name1"
 echo "Extending the other file again" >> "$name2"
 
 checkit "$RSYNC -avv --inplace --backup --backup-dir=\"$bakdir\" \"$fromdir/\" \"$todir/\"" "$fromdir" "$todir"
 
-diff -ru "$chkdir" "$bakdir"
+diff -r $diffopt "$chkdir" "$bakdir"
 
 # The script would have aborted on error, so getting here means we've won.
 exit 0