Merge lp:~bladernr/checkbox/1103343-rendercheck-test-fix into lp:checkbox
Proposed by
Jeff Lane
Status: | Merged |
---|---|
Approved by: | Daniel Manrique |
Approved revision: | 1902 |
Merged at revision: | 1901 |
Proposed branch: | lp:~bladernr/checkbox/1103343-rendercheck-test-fix |
Merge into: | lp:checkbox |
Diff against target: |
47 lines (+6/-2) 3 files modified
debian/changelog (+4/-1) jobs/rendercheck.txt.in (+1/-1) scripts/rendercheck_test (+1/-0) |
To merge this branch: | bzr merge lp:~bladernr/checkbox/1103343-rendercheck-test-fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email: mp+144590@code.launchpad.net |
Description of the change
Jeffrey Chang noticed that when rendercheck_test is run on a system without rendercheck installed, checkbox still records a passing error. This appears to be because rendercheck_test depended on the errno module, but that module was never imported. This MR adds the missing import for errno which resolves the issue, causing rendercheck to exit with a fail code properly if rendercheck is not present on the SUT.
Additionally, I've reworded the command definition to properly return a fail code if rendercheck fails to run or exits with errors.
To post a comment you must log in.
Short and sweet. I checked the shell logic with some dummy commands, and I agree on the errno inclusion. I guess the original author didn't test on a system *without* rendercheck :)
Anyway, merging.