Files
rclone/cmd/bisync/testdata/test_resync_modes/golden/test.log
T
Nick Craig-Wood 4e5d4d041d bisync: compare only test specific log lines in most golden tests
Every bisync golden log contained the same boilerplate log messages,
so changing the wording of one of them changed nearly every golden
log. This made independent changes to bisync conflict with each other
when merging.

Compare the log in full only for the basic, check_access, dry_run,
filters and resync test cases, which between them pin the wording and
order of the common messages. For all other test cases compare only
the lines specific to the test: the test steps, anything logged at
NOTICE or ERROR level, and INFO lines about a named file, directory
or path.

A common log message now appears in 5 golden logs rather than 29.
Listings and queue files are compared exactly as before.
2026-10-13 10:54:35 +01:00

4.1 KiB

(01) : test resync-mode
 
 
(02) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(03) : touch-glob 2001-01-02 {datadir/} file1R.txt
(04) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(05) : touch-glob 2001-03-04 {datadir/} file1L.txt
(06) : copy-as {datadir/}file1L.txt {path1/} file1.txt
 
(07) : test bisync run with --resync-mode=newer
(08) : bisync resync resync-mode=newer
 
(09) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(10) : touch-glob 2001-07-23 {datadir/} file1R.txt
(11) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(12) : touch-glob 2001-08-26 {datadir/} file1L.txt
(13) : copy-as {datadir/}file1L.txt {path1/} file1.txt
 
(14) : test bisync run with --resync-mode=path2
(15) : bisync resync resync-mode=path2
 
(16) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(17) : touch-glob 2002-07-23 {datadir/} file1R.txt
(18) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(19) : touch-glob 2002-08-26 {datadir/} file1L.txt
(20) : copy-as {datadir/}file1L.txt {path1/} file1.txt
 
(21) : test bisync run with --resync-mode=larger
(22) : bisync resync resync-mode=larger
INFO : file1.txt: Path2 is larger. Path1: 33, Path2: 42, Difference: 9
 
(23) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(24) : touch-glob 2003-07-23 {datadir/} file1R.txt
(25) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(26) : touch-glob 2003-09-04 {datadir/} file1L.txt
(27) : copy-as {datadir/}file1L.txt {path1/} file1.txt
 
(28) : test bisync run with --resync-mode=older
(29) : bisync resync resync-mode=older
INFO : file1.txt: Path2 is older. Path1: 2003-09-04 00:00:00 +0000 UTC, Path2: 2003-07-23 00:00:00 +0000 UTC, Difference: 1032h0m0s
 
(30) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(31) : touch-glob 2004-07-23 {datadir/} file1R.txt
(32) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(33) : touch-glob 2004-07-23 {datadir/} file1L.txt
(34) : copy-as {datadir/}file1L.txt {path1/} file1.txt
 
(35) : test bisync run with --resync-mode=smaller
(36) : bisync resync resync-mode=smaller
INFO : file1.txt: Path1 is smaller. Path1: 33, Path2: 42, Difference: 9
INFO : file1.txt: Path1 is smaller. Path1: 33, Path2: 42, Difference: 9
 
(37) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(38) : touch-glob 2005-01-02 {datadir/} file1R.txt
(39) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(40) : copy-as {datadir/}file1R.txt {path1/} file2.txt
(41) : touch-glob 2006-03-04 {datadir/} file1L.txt
(42) : copy-as {datadir/}file1L.txt {path1/} file1.txt
(43) : copy-as {datadir/}file1L.txt {path2/} file2.txt
 
(44) : test bisync run with --resync-mode=path1
(45) : bisync resync resync-mode=path1
 
(46) : test no winner
(47) : touch-glob 2022-02-22 {datadir/} file1R.txt
(48) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(49) : copy-as {datadir/}file1R.txt {path1/} file2.txt
(50) : touch-glob 2022-02-22 {datadir/} file1L.txt
(51) : copy-as {datadir/}file1L.txt {path1/} file1.txt
(52) : copy-as {datadir/}file1L.txt {path2/} file2.txt
 
(53) : test bisync run with --resync-mode=newer
(54) : bisync resync resync-mode=newer