From 9412d36593f31f67f0bef442526cf17274017905 Mon Sep 17 00:00:00 2001 From: John Spray Date: Fri, 13 May 2022 17:09:58 +0100 Subject: [PATCH] tests: fix BadLogLines for "No such file" messages This assert originally went in when we wanted to check we weren't grepping on a nonexistent path, but it turns out there are certain conditions under which Redpanda can emit matching log messages, which we should be handling as the usual BadLogLines, not asserting on. --- tests/rptest/services/redpanda.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/rptest/services/redpanda.py b/tests/rptest/services/redpanda.py index 358ef489daa7..5c34e631139c 100644 --- a/tests/rptest/services/redpanda.py +++ b/tests/rptest/services/redpanda.py @@ -1029,8 +1029,6 @@ def raise_on_bad_logs(self, allow_list=None): ): line = line.strip() - assert "No such file or directory" not in line - allowed = False for a in allow_list: if a.search(line) is not None: