Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
soares-sergio committed Dec 19, 2024
1 parent 74ce572 commit b4f5d8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/examples/conformance_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def parse_test_logs(test_log_paths):
if "Problem: ProblemSeverity.ERROR" in line:
try:
error_details = "\n".join(
[" " + re.sub(r"^\[.*?\]\[.*?\]\[.*?\]", "", l).strip() for l in output_lines[i:i+8]]
[" " + re.sub(r"^\[.*?\]\[.*?\]\[.*?\]", "", error_line).strip() for error_line in output_lines[i:i+8]]
)
failures.append(error_details + "\n")
except IndexError:
Expand Down Expand Up @@ -146,7 +146,7 @@ def run_tests(tests, executable_paths, tmp_results_dir, skip_testing):
result.check_returncode() # Raise an exception if the command returned a non-zero exit code
print(f" - Test PASSED. Logs written to {test_output_path}")
except subprocess.CalledProcessError as e:
print(f" - Test FAILED. Logs written to {test_output_path}")
print(f" - Test FAILED. Logs written to {test_output_path}: {e}")
except Exception as e:
print(f"Error running test for {app_name}: {e}")

Expand Down

0 comments on commit b4f5d8a

Please sign in to comment.