Files
rclone/cmd/bisync/testdata/test_check_sync/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

2.0 KiB

(01) : test check-sync
 
 
(02) : test initial bisync
(03) : bisync resync
 
(04) : test 1. run check-sync-only on a clean sync
(05) : bisync check-sync-only
 
(06) : test 2. inject modified listings into the workdir
(07) : copy-as {datadir/}_testdir_path1.._testdir_path2.path1.lst {workdir/} {session}.path1.lst
(08) : copy-as {datadir/}_testdir_path1.._testdir_path2.path2.lst {workdir/} {session}.path2.lst
 
(09) : test 3. run check-sync-only on modified listings
(10) : bisync check-sync-only
ERROR : - Path1 file not found in Path2 - file2.txt
ERROR : - Path2 file not found in Path1 - file1.txt
ERROR : Bisync critical error: path1 and path2 are out of sync, run --resync to recover
ERROR : Bisync aborted. Must run --resync to recover.
Bisync error: bisync aborted
(11) : copy-listings check-sync-only
 
(12) : test 4. run normal sync to check that it aborts
(13) : bisync
ERROR : Bisync critical error: cannot find prior Path1 or Path2 listings, likely due to critical error on prior run
ERROR : Bisync aborted. Must run --resync to recover.
Bisync error: bisync aborted
 
(14) : test 5. prune failure listings after critical abort
(15) : delete-glob {workdir/} *.lst
(16) : delete-glob {workdir/} *.lst-err
(17) : delete-glob {workdir/} *.lst-new
 
(18) : test 6. run resync
(19) : bisync resync
 
(20) : test 7. run normal sync with check-sync enabled (default)
(21) : bisync
 
(22) : test 8. run normal sync with no-check-sync
(23) : bisync no-check-sync