1
0
mirror of https://github.com/rclone/rclone.git synced 2025-11-23 21:44:49 +02:00
Files
rclone/cmd/bisync
nielash d2916ac5c7 bisync: ignore expected "nothing to transfer" differences on tests
The "There was nothing to transfer" log is only printed when the number of
transfers is exactly 0. However, there are a variety of reasons why the transfer
count would be expected to differ between backends. For example, if either side
lacks hashes, the sync may in fact need to transfer, where it would otherwise
skip based on hash or just update modtime. Transfer stats will also differ in
the "src and dst identical but can't set mod time without deleting and re-
uploading" scenario (because the re-upload is a transfer), and where --download-hash
is needed (because calculating the hash requires downloading the file, which is
a transfer).

Before this change, these expected differences would result in erroneous test
failures. This change fixes the issue by ignoring the absence of the "nothing to
transfer" log where it is expected.

Note that this issue did not occur before
9e200531b1
because the number of transfers was not getting reset between test steps,
sometimes resulting in an artificially inflated transfers count.
2025-09-01 14:05:00 -04:00
..
2025-08-17 20:16:46 -04:00
2025-08-22 12:13:59 +01:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00
2025-08-17 20:16:46 -04:00