From be8652c3c3c6fdd306d320ed9032d953fb2230c8 Mon Sep 17 00:00:00 2001 From: Bratislav Filipovic Date: Thu, 11 Dec 2025 14:21:23 +0000 Subject: [PATCH] Add printing to test 10 for easier debugging --- test/run-test.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/run-test.py b/test/run-test.py index 735c011..d7c74a9 100644 --- a/test/run-test.py +++ b/test/run-test.py @@ -592,11 +592,19 @@ def check_test_10(): found_in_debug = False found_in_no_debug = False for check_str in check_list: - pattern = re.compile(check_str) - if pattern.search(err_str_debug): + if check_str.search(err_str_debug): found_in_debug = True - if pattern.search(err_str_no_debug): + else: + print(f'"{check_str.pattern}" Not Found in debug info dump.') + if check_str.search(err_str_no_debug): found_in_no_debug = True + print(f'"{check_str.pattern}" Found in no debug info dump.') + + if not found_in_debug or found_in_no_debug: + print("rocr-debug-agent output with debug info:") + print(err_str_debug) + print("rocr-debug-agent output with no debug info:") + print(err_str_no_debug) return found_in_debug and not found_in_no_debug