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.
This commit is contained in:
Nick Craig-Wood committed 2026-10-13 10:54:35 +01:00
1 parent 4f19e9cd6f
commit 4e5d4d041d
25 files changed
+39 -2119

No files matched your search

@@ -3,25 +3,6 @@
(02) : test initial bisync
(03) : bisync resync
INFO : Setting --ignore-listing-checksum as neither --checksum nor --compare checksum are set.
INFO : Bisyncing with Comparison Settings:
{
"Modtime": true,
"Size": true,
"Checksum": false,
"NoSlowHash": false,
"SlowHashSyncOnly": false,
"DownloadHash": false
}
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
INFO : Copying Path2 files to Path1
INFO : - Path2 Resync is copying files to - Path1
INFO : There was nothing to transfer
INFO : - Path1 Resync is copying files to - Path2
INFO : There was nothing to transfer
INFO : Resync updating listings
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
INFO : Bisync successful
(04) : test delete >50% of remote files
(05) : delete-file {path2/}file1.txt
@@ -32,20 +13,6 @@ INFO : Bisync successful
(10) : test sync should fail due to too many path2 deletes
(11) : bisync
INFO : Setting --ignore-listing-checksum as neither --checksum nor --compare checksum are set.
INFO : Bisyncing with Comparison Settings:
{
"Modtime": true,
"Size": true,
"Checksum": false,
"NoSlowHash": false,
"SlowHashSyncOnly": false,
"DownloadHash": false
}
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
INFO : Building Path1 and Path2 listings
INFO : Path1 checking for diffs
INFO : Path2 checking for diffs
INFO : - Path2 File was deleted - file1.txt
INFO : - Path2 File was deleted - file2.txt
INFO : - Path2 File was deleted - file3.txt
@@ -59,34 +26,14 @@ Bisync error: too many deletes
(13) : test apply force option. sync should run.
(14) : bisync force
INFO : Setting --ignore-listing-checksum as neither --checksum nor --compare checksum are set.
INFO : Bisyncing with Comparison Settings:
{
"Modtime": true,
"Size": true,
"Checksum": false,
"NoSlowHash": false,
"SlowHashSyncOnly": false,
"DownloadHash": false
}
INFO : Synching Path1 "{path1/}" with Path2 "{path2/}"
INFO : Building Path1 and Path2 listings
INFO : Path1 checking for diffs
INFO : Path2 checking for diffs
INFO : - Path2 File was deleted - file1.txt
INFO : - Path2 File was deleted - file2.txt
INFO : - Path2 File was deleted - file3.txt
INFO : - Path2 File was deleted - file4.txt
INFO : - Path2 File was deleted - file5.txt
INFO : Path2: 5 changes:  0 new,  0 modified,  5 deleted
INFO : Applying changes
INFO : - Path1 Queue delete - {path1/}file1.txt
INFO : - Path1 Queue delete - {path1/}file2.txt
INFO : - Path1 Queue delete - {path1/}file3.txt
INFO : - Path1 Queue delete - {path1/}file4.txt
INFO : - Path1 Queue delete - {path1/}file5.txt
INFO : - Path2 Do queued copies to - Path1
INFO : There was nothing to transfer
INFO : Updating listings
INFO : Validating listings for Path1 "{path1/}" vs Path2 "{path2/}"
INFO : Bisync successful