Merge lp:~bladernr/checkbox/1472406 into lp:checkbox

Proposed by Jeff Lane 
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 3880
Merged at revision: 3881
Proposed branch: lp:~bladernr/checkbox/1472406
Merge into: lp:checkbox
Diff against target: 19 lines (+3/-6)
1 file modified
providers/plainbox-provider-checkbox/bin/ipmi_test (+3/-6)
To merge this branch: bzr merge lp:~bladernr/checkbox/1472406
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Review via email: mp+264079@code.launchpad.net

Description of the change

ipmi_test should fail on any module failure rather than quietly exit. Leave it to results review rather than assume failure indicates no BMC.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1, thanks

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-checkbox/bin/ipmi_test'
2--- providers/plainbox-provider-checkbox/bin/ipmi_test 2014-03-20 14:01:58 +0000
3+++ providers/plainbox-provider-checkbox/bin/ipmi_test 2015-07-07 22:17:19 +0000
4@@ -8,12 +8,9 @@
5 echo "Loading $module..."
6 modprobe $module
7 result=$?
8- # if ipmi_si fails to load, it's safe to assume the system
9- # has no BMC, so we'll just politely exit.
10- if [ $result -eq 1 ] && [ "$module" = "ipmi_si" ]; then
11- echo "WARNING: No BMC found. Aborting."
12- exit 0
13- elif [ $result -eq 1 ]; then
14+ # If the IPMI drivers don't load, it could be the system has no BMC, or
15+ # the IPMI driver is bad. We should error and Fail here.
16+ if [ $result -eq 1 ]; then
17 echo "ERROR: Unable to load module $module" >&2
18 echo "Aborting IPMI test run." >&2
19 exit 1

Subscribers

People subscribed via source and target branches