From c367b1f142db9f6c7a329cc731b338fc02418ccc Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sun, 8 Mar 2026 11:04:47 +1100 Subject: [PATCH] Update EVENT_PATTERNS to handle debug logging * Update EVENT_PATTERNS to handle debug logging --- .../testcases/tc0002_sync_list_validation.py | 29 +++++++++++++++---- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/ci/e2e/testcases/tc0002_sync_list_validation.py b/ci/e2e/testcases/tc0002_sync_list_validation.py index 0110690a..196129e4 100644 --- a/ci/e2e/testcases/tc0002_sync_list_validation.py +++ b/ci/e2e/testcases/tc0002_sync_list_validation.py @@ -103,12 +103,29 @@ class TestCase0002SyncListValidation(E2ETestCase): name = "sync_list validation" description = "Validate sync_list behaviour across a scenario matrix" - EVENT_PATTERNS = [ - ("skip", re.compile(r"^Skipping path - excluded by sync_list config: (.+)$")), - ("include_dir", re.compile(r"^Including path - included by sync_list config: (.+)$")), - ("include_file", re.compile(r"^Including file - included by sync_list config: (.+)$")), - ("upload_file", re.compile(r"^Uploading new file: (.+?) \.\.\.")), - ("create_remote_dir", re.compile(r"^OneDrive Client requested to create this directory online: (.+)$")), + EVENT_PATTERNS = [ + ( + "skip", + re.compile(r"^(?:DEBUG:\s+)?Skipping path - excluded by sync_list config: (.+)$"), + ), + ( + "include_dir", + re.compile(r"^(?:DEBUG:\s+)?Including path - included by sync_list config: (.+)$"), + ), + ( + "include_file", + re.compile(r"^(?:DEBUG:\s+)?Including file - included by sync_list config: (.+)$"), + ), + ( + "upload_file", + re.compile(r"^(?:DEBUG:\s+)?Uploading new file: (.+?) \.\.\."), + ), + ( + "create_remote_dir", + re.compile( + r"^(?:DEBUG:\s+)?OneDrive Client requested to create this directory online: (.+)$" + ), + ), ] def run(self, context: E2EContext) -> TestResult: