Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions test/run-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down