Skip to content

Commit

Permalink
Prevent status updates from overwriting test results
Browse files Browse the repository at this point in the history
  • Loading branch information
val500 committed Jul 22, 2024
1 parent 2f1a582 commit c6d5472
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def put_status_update(
event_parser.process_events(test_execution.test_events)
if event_parser.resource_url is not None:
test_execution.resource_url = event_parser.resource_url
if event_parser.is_completed:
if (event_parser.is_completed
and test_execution.status is not TestExecutionStatus.FAILED
and test_execution.status is not TestExecutionStatus.PASSED):
test_execution.status = TestExecutionStatus.ENDED
db.commit()

Expand Down

0 comments on commit c6d5472

Please sign in to comment.