Skip to content

Commit

Permalink
Merge pull request #36 from pmcollins/assertion-error
Browse files Browse the repository at this point in the history
Handle assertion errors
  • Loading branch information
pmcollins authored Nov 26, 2024
2 parents 928685d + 8476c5a commit 96d0b2f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/oteltest/private.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@ def setup_script_environment(
logger.info("Will save telemetry to %s", filename)
save_telemetry_json(json_dir, filename, handler.telemetry_to_json())

oteltest_instance.on_stop(handler.telemetry, stdout, stderr, returncode)
logger.info("PASSED: %s", script)
try:
oteltest_instance.on_stop(handler.telemetry, stdout, stderr, returncode)
logger.info("PASSED: %s", script)
except AssertionError as ae:
logger.info("AssertionError: %s %s", script, ae)
sink.stop()


Expand Down
2 changes: 1 addition & 1 deletion src/oteltest/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.34.0"
__version__ = "0.35.0"

0 comments on commit 96d0b2f

Please sign in to comment.