-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
I find it strange that we receive a "testRunEnd": {"status": "COMPLETE", "result": "PASS"} even when encountering a FAIL diagnosis in TestStep or when using the TestRun.add_error() method.
For instance, in the provided example at this link: https://github.com/opencomputeproject/ocp-diag-core-python/blob/4671c0f4f1591311851c7437162dc804e3848fdb/examples/sample_output.txt#L187C1-L187C24
We still obtain the PASS result even though we use add_error().
I believe we can manually collect the status/result ourselves and raise the TestRunError if any error or failed diagnostic occurs.
I would like to inquire whether this behavior is intentional or a bug. Additionally, I am interested in knowing the best practice for handling such situations.
Thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels