From 9df751d4ec64f35347e46b1cb811aaf76a54a3ef Mon Sep 17 00:00:00 2001 From: nielash Date: Wed, 12 Feb 2025 00:24:06 -0500 Subject: [PATCH] bisync: fix false positive on integration tests https://github.com/rclone/rclone/commit/5f70918e2c867e0bf8c4ff38b34960738dbd4883 introduced a new INFO log when making a directory, which differs depending on whether the backend supports setting directory metadata. This caused false positives on the bisync createemptysrcdirs test. This fixes it by ignoring that log line. --- cmd/bisync/bisync_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/bisync/bisync_test.go b/cmd/bisync/bisync_test.go index f154d4d28..0b4ad7346 100644 --- a/cmd/bisync/bisync_test.go +++ b/cmd/bisync/bisync_test.go @@ -108,6 +108,8 @@ var logReplacements = []string{ `^.*?Can't compare hashes, so using check --download.*?$`, dropMe, // ignore timestamps in directory time updates `^(INFO : .*?: (Made directory with|Set directory) (metadata|modification time)).*$`, dropMe, + // ignore equivalent log for backends lacking dir modtime support + `^(INFO : .*?: Making directory).*$`, dropMe, // ignore sizes in directory time updates `^(NOTICE: .*?: Skipped set directory modification time as --dry-run is set).*$`, dropMe, // ignore sizes in directory metadata updates