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.
2.6 KiB
2.6 KiB
(01) : test equal
(02) : test initial bisync
(03) : bisync resync
(04) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(05) : touch-glob 2001-01-02 {datadir/} file1R.txt
(06) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(07) : touch-glob 2001-03-04 {datadir/} file1L.txt
(08) : copy-as {datadir/}file1L.txt {path1/} file1.txt
(09) : test changed on both paths and identical - file2
(10) : touch-glob 2001-01-02 {datadir/} file2.txt
(11) : copy-as {datadir/}file2.txt {path1/} file2.txt
(12) : copy-as {datadir/}file2.txt {path2/} file2.txt
(13) : test bisync run
(14) : bisync
INFO : - Path1 File changed: size (larger), time (newer) - file1.txt
INFO : - Path1 File changed: size (larger), time (newer) - file2.txt
INFO : Path1: 2 changes: 0 new, 2 modified, 0 deleted
INFO : (Modified: 2 newer, 0 older, 2 larger, 0 smaller)
INFO : - Path2 File changed: size (larger), time (newer) - file1.txt
INFO : - Path2 File changed: size (larger), time (newer) - file2.txt
INFO : Path2: 2 changes: 0 new, 2 modified, 0 deleted
INFO : (Modified: 2 newer, 0 older, 2 larger, 0 smaller)
ERROR : file1.txt: {hashtype} differ
NOTICE: {path2String}: 1 differences found
NOTICE: {path2String}: 1 errors while checking
NOTICE: {path2String}: 1 matching files
NOTICE: - WARNING New or changed in both paths - file1.txt
NOTICE: - Path1 Renaming Path1 copy - {path1/}file1.txt.conflict1
NOTICE: - Path1 Queue copy to Path2 - {path2/}file1.txt.conflict1
NOTICE: - Path2 Renaming Path2 copy - {path2/}file1.txt.conflict2
NOTICE: - Path2 Queue copy to Path1 - {path1/}file1.txt.conflict2
NOTICE: - WARNING New or changed in both paths - file2.txt
INFO : Files are equal! Skipping: file2.txt
(02) : test initial bisync
(03) : bisync resync
(04) : test changed on both paths and NOT identical - file1 (file1R, file1L)
(05) : touch-glob 2001-01-02 {datadir/} file1R.txt
(06) : copy-as {datadir/}file1R.txt {path2/} file1.txt
(07) : touch-glob 2001-03-04 {datadir/} file1L.txt
(08) : copy-as {datadir/}file1L.txt {path1/} file1.txt
(09) : test changed on both paths and identical - file2
(10) : touch-glob 2001-01-02 {datadir/} file2.txt
(11) : copy-as {datadir/}file2.txt {path1/} file2.txt
(12) : copy-as {datadir/}file2.txt {path2/} file2.txt
(13) : test bisync run
(14) : bisync
INFO : - Path1 File changed: size (larger), time (newer) - file1.txt
INFO : - Path1 File changed: size (larger), time (newer) - file2.txt
INFO : Path1: 2 changes: 0 new, 2 modified, 0 deleted
INFO : (Modified: 2 newer, 0 older, 2 larger, 0 smaller)
INFO : - Path2 File changed: size (larger), time (newer) - file1.txt
INFO : - Path2 File changed: size (larger), time (newer) - file2.txt
INFO : Path2: 2 changes: 0 new, 2 modified, 0 deleted
INFO : (Modified: 2 newer, 0 older, 2 larger, 0 smaller)
ERROR : file1.txt: {hashtype} differ
NOTICE: {path2String}: 1 differences found
NOTICE: {path2String}: 1 errors while checking
NOTICE: {path2String}: 1 matching files
NOTICE: - WARNING New or changed in both paths - file1.txt
NOTICE: - Path1 Renaming Path1 copy - {path1/}file1.txt.conflict1
NOTICE: - Path1 Queue copy to Path2 - {path2/}file1.txt.conflict1
NOTICE: - Path2 Renaming Path2 copy - {path2/}file1.txt.conflict2
NOTICE: - Path2 Queue copy to Path1 - {path1/}file1.txt.conflict2
NOTICE: - WARNING New or changed in both paths - file2.txt
INFO : Files are equal! Skipping: file2.txt