plainbox-provider-checkbox:phlin/code-style-fix

Last commit made on 2021-08-26
Get this branch:
git clone -b phlin/code-style-fix https://git.launchpad.net/plainbox-provider-checkbox
Members of Checkbox Developers can upload to this branch. Log in for directions.

Branch merges

Branch information

Name:
phlin/code-style-fix
Repository:
lp:plainbox-provider-checkbox

Recent commits

f429d2a... by Po-Hsu Lin

Change: bin/kernel_taint_test.py: move report_failures() to main() and code cleanup

The report_failures() is now just return whether the test pass or fail
move the code piece to main() and update the docstring accordingly.

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.

Remove unnecessary parentheses for return

Use raise SystemExit() for taint_file not found exeception.

0fb3f4c... by PMR <pmr@pmr-lander>

Merge #405897 from plainbox-provider-checkbox:phlin/fix-tainted-check

exit takes only integer args in the range 0 - 255
If we return the taint value read from /proc/sys/kernel/tainted,
it might exceed this range and causing unexpected behaviour.

e.g. on a system with kernel warning
$ ./kernel_taint_test.py
Kernel taint value is 512
Taint bit value: 9 (kernel issued warning)
Taint bit value: 9 (kernel issued warning)
$ echo $?
0

Let's just simplify the return logic of report_failures() to return
either 0 or 1.

11f1532... by Po-Hsu Lin

bin/kernel_taint_test.py: return 0 for passed cases, 1 for others

exit takes only integer args in the range 0 - 255
If we return the taint value read from /proc/sys/kernel/tainted,
it might exceed this range and causing unexpected behaviour.

e.g. on a system with kernel warning
$ ./kernel_taint_test.py
Kernel taint value is 512
Taint bit value: 9 (kernel issued warning)
Taint bit value: 9 (kernel issued warning)
$ echo $?
0

Let's just simplify the return logic of report_failures() to return
either 0 or 1.

Signed-off-by: Po-Hsu Lin <email address hidden>

d82e5c2... by PMR <pmr@pmr-lander>

Merge #405172 from ~zongminl/plainbox-provider-checkbox:sync-watchdog-test-between-classic-and-core

Change: Align the test for watchdog config on classic and core image

Watchdog implementation on both classic and core image no longer rely
on watchdogd service since 20.04, with this change watchdog/systemd-config
tests only systemd configuration on 20.04 and later series while keeping
the original test for prior releases

a610500... by Vic Liu

Change: Align the test for watchdog config on classic and core image

Watchdog implementation on both classic and core image no longer rely
on watchdogd service since 20.04, with this change watchdog/systemd-config
tests only systemd configuration on 20.04 and later series while keeping
the original test for prior releases

6689ffb... by PMR <pmr@pmr-lander>

Merge #405682 from ~kchsieh/plainbox-provider-checkbox/+git/plainbox-provider-checkbox:iwlwifi-microcode-crash

Add: iwlwifi microcode crash check

db7032c... by Kai-Chuan Hsieh

Add: iwlwifi microcode crash check

LP: #1932548

46d262b... by PMR <pmr@pmr-lander>

Merge #405578 from plainbox-provider-checkbox:release

Release_2021_Week28

6ff546a... by PMR <pmr@pmr-lander>

increment version to v0.60.0.dev0

f27a50c... by PMR <pmr@pmr-lander>

Bump to v0.59.0