From 15b692ccc945de0179cefe0815aebf8554649533 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Tue, 14 Mar 2023 15:27:52 +0200 Subject: [PATCH] test: more strict finding of WARN, ERROR lines (#3798) this prevents flakyness when `WARN|ERROR` appears in some other part of the line, for example in a random filename. --- test_runner/fixtures/neon_fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_runner/fixtures/neon_fixtures.py b/test_runner/fixtures/neon_fixtures.py index a25709a305..c5e260a962 100644 --- a/test_runner/fixtures/neon_fixtures.py +++ b/test_runner/fixtures/neon_fixtures.py @@ -2154,7 +2154,7 @@ class NeonPageserver(PgProtocol): def assert_no_errors(self): logfile = open(os.path.join(self.env.repo_dir, "pageserver.log"), "r") - error_or_warn = re.compile("ERROR|WARN") + error_or_warn = re.compile(r"\s(ERROR|WARN)") errors = [] while True: line = logfile.readline()