Checkbox needs an option to ONLY report overall PASS or FAIL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Next Generation Checkbox (CLI) |
Fix Released
|
Wishlist
|
Sylvain Pineau | ||
PlainBox (Toolkit) |
Fix Released
|
Wishlist
|
Sylvain Pineau |
Bug Description
This is a request from Open Compute who are planning to standardize their entire certification program on Plainbox/
They want a way to have it ONLY report an overall PASS or FAIL
Personally, I think that's a bit much for checkbox to handle on it's own, and I really think it would be better to see the full result set. SO, what I was thinking was this:
How about adding an overall PASS/FAIL to the result summary?
In the section with all the hardware and stuff there could be a new field called something like "RESULT:" and that could either be PASS or FAIL depending on the outcome of the tests.
Of cousre, this would require all the tests to exit with a PASS criteria. This too may be a good thing though, as it could force some fixing to tests to avoid our continued use of "FailPass" results (where a test fails but actually passes).
Obviously there may still be situations where a test may fail and actually pass after examination, but for OCP, they want things to be a bit more cut and dry with regards to certification.
Related branches
- Sylvain Pineau (community): Approve
-
Diff: 57 lines (+16/-0)4 files modifiedplainbox/plainbox/impl/commands/test_run.py (+2/-0)
plainbox/plainbox/impl/providers/exporters/data/global.txt (+6/-0)
plainbox/plainbox/impl/providers/exporters/units/exporter.pxu (+7/-0)
plainbox/plainbox/impl/session/manager.py (+1/-0)
Changed in checkbox-ng: | |
status: | Incomplete → New |
Changed in checkbox-ng: | |
importance: | High → Medium |
Changed in plainbox: | |
importance: | High → Medium |
Changed in checkbox-ng: | |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
Changed in plainbox: | |
assignee: | nobody → Sylvain Pineau (sylvain-pineau) |
Changed in checkbox-ng: | |
milestone: | none → 0.29 |
Changed in plainbox: | |
milestone: | none → 0.31 |
Changed in checkbox-ng: | |
status: | Triaged → Fix Committed |
Changed in plainbox: | |
status: | Triaged → Fix Committed |
Changed in checkbox-ng: | |
status: | Fix Committed → Fix Released |
Changed in plainbox: | |
status: | Fix Committed → Fix Released |
Hello!
Can you clarify the meaning of "overall PASS/FAIL"? Something like:
if any([result == FAIL for result in testrun.results]): "overall: FAIL")
print(
else:
print("overall: PASS")