Skip to content

Commit

Permalink
LibCI test results might be nested, i.e. not at start of line
Browse files Browse the repository at this point in the history
  • Loading branch information
OhadMeir committed Feb 19, 2025
1 parent 8ed6e12 commit ca22a46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions unit-tests/py/rspy/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,8 +595,8 @@ def __exit__( self, type, value, traceback ):

def print_results():
"""
Used to print the results of the tests in the file. The format has to agree with the expected format in check_log()
in run-unit-tests and with the C++ format using Catch
Used to print the results of the tests in the file. The format has to agree with the expected format in
check_log_for_fails() in run-unit-tests and with the C++ format using Catch
"""
print_separator()
global n_assertions, n_tests, n_failed_assertions, n_failed_tests, failed_tests
Expand Down
2 changes: 1 addition & 1 deletion unit-tests/run-unit-tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def check_log_for_fails( path_to_log, testname, configuration=None, repetition=1
if path_to_log is None:
return False
results = None
for ctx in file.grep( r'^test cases:\s*(\d+) \|\s*(\d+) (passed|failed)|^----------TEST-SEPARATOR----------$',
for ctx in file.grep( r'test cases:\s*(\d+) \|\s*(\d+) (passed|failed)|^----------TEST-SEPARATOR----------$',
path_to_log ):
m = ctx['match']
if m.string == "----------TEST-SEPARATOR----------":
Expand Down

0 comments on commit ca22a46

Please sign in to comment.