Merge plainbox-provider-checkbox:phlin/code-style-fix into plainbox-provider-checkbox:master
Proposed by
Po-Hsu Lin
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Po-Hsu Lin | ||||
Approved revision: | f429d2a74057f1fe7c4c58bdccd7c1ca239a08ff | ||||
Merged at revision: | 4c7a9c3bf9e2c88b5f5ef85524ac25b2c5ce5db2 | ||||
Proposed branch: | plainbox-provider-checkbox:phlin/code-style-fix | ||||
Merge into: | plainbox-provider-checkbox:master | ||||
Diff against target: |
96 lines (+17/-23) 1 file modified
bin/kernel_taint_test.py (+17/-23) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maciej Kisielewski | Approve | ||
Jonathan Cave | Pending | ||
Review via email: mp+407718@code.launchpad.net |
This proposal supersedes a proposal from 2021-07-21.
Commit message
This patch will:
1. move report_failures() to main(), remove unnecessary parentheses
The report_failures() is now just return whether the test pass or fail
move the code piece to main() and update the docstring accordingly.
2. remove extra print for kernel taint info
The tainted bit value and its message will be printed at the beginning
of this if statement, there is no need to print it again.
3. Use raise SystemExit() for taint_file not found exeception.
To post a comment you must log in.
Thanks for the cleanup!
Some time ago we introduced a guideline for contributions to checkbox and its family. We started using prefixes for what the commit does, so it's easier to create relnotes and overall navigate through the repos.
"""
In addition, if it makes sense to do so, prefix the title with one of the following terms:
Add
Change
Remove
Fix
"""
If you could be so kind and amend the commits with prefix like that it would be awesome.
There's also one thing I highlighted in the diff below. Feel free to not do anything about it :D