From 4b908a86dfae0a0be53e25d8a3357e2de7dd98e0 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Mon, 9 Dec 2019 15:19:39 +0100 Subject: Fix tools\debug_windows.py to properly display possible error snippets The check in find_error_like_snippets was incorrect, and thus never showed any snippets. Change-Id: Ie8d487b071e73c6f4a1352e9b10e616694b2e237 Reviewed-by: Friedemann Kleint --- tools/debug_windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debug_windows.py b/tools/debug_windows.py index 02e00a504..dbde5f534 100644 --- a/tools/debug_windows.py +++ b/tools/debug_windows.py @@ -268,7 +268,7 @@ def find_error_like_snippets(content): ('ERROR: Module load completed but symbols could ' 'not be loaded')} return (re.search('error', l, re.IGNORECASE) - and all(e not in errors for e in errors)) + and all(e not in l for e in errors)) for i in range(1, len(lines)): line = lines[i] -- cgit v1.2.3