Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: hoangtungdinh <[email protected]>
  • Loading branch information
hoangtungdinh committed Sep 16, 2024
1 parent 46976fd commit 337050d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion qc_openscenario/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ def execute_checker(
status=StatusType.SKIPPED,
)

checker_data.result.add_checker_summary(
constants.BUNDLE_NAME,
checker.CHECKER_ID,
"Preconditions are not satisfied. Skip the check.",
)

return

# Checker definition setting. If not satisfied then set status as SKIPPED and return
Expand All @@ -84,6 +90,12 @@ def execute_checker(
status=StatusType.SKIPPED,
)

checker_data.result.add_checker_summary(
constants.BUNDLE_NAME,
checker.CHECKER_ID,
f"Version {schema_version} is lower than definition setting {definition_setting}. Skip the check.",
)

return

# Execute checker
Expand All @@ -109,7 +121,7 @@ def execute_checker(
)

checker_data.result.add_checker_summary(
constants.BUNDLE_NAME, checker.CHECKER_ID, f"Error: {str(e)}. "
constants.BUNDLE_NAME, checker.CHECKER_ID, f"Error: {str(e)}."
)


Expand Down

0 comments on commit 337050d

Please sign in to comment.