diff options
author | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 23:45:59 -0700 |
---|---|---|
committer | Adrian Lane <adrian.lane@canonical.com> | 2020-05-18 23:45:59 -0700 |
commit | 026ee3f7089aeb0bfee3e78c6b6a528c08133088 (patch) | |
tree | 4f856ceaa530ad52a95a2f63b5ad5d9367f89a1c /bin | |
parent | da71ba1007b67c161c8a650fa194a020aa7004d9 (diff) |
Updated get_ipmi_channel() to skip invalid IPMI channels.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ipmi_test.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py index bea8167..0aefea1 100755 --- a/bin/ipmi_test.py +++ b/bin/ipmi_test.py @@ -61,9 +61,9 @@ class FreeIpmiTest: 'ipmi_msghandler') # method subprocess commands (FreeIPMI) self._cmd_ipmi_chassis = [ - get_path('ipmi-chassisd'), '--get-status'] + get_path('ipmi-chassis'), '--get-status'] self._cmd_ipmi_channel = [ - get_path('ipmi-configd'), '--checkout', + get_path('ipmi-config'), '--checkout', '--lan-channel-number'] self._cmd_get_bmc_info = [ get_path('bmc-info')] @@ -239,6 +239,9 @@ class FreeIpmiTest: regex = re.compile('Section User') # test channels 0 - 15 for i in range(16): + # channel 12, 13 are invalid channels, skip + if i == (12 | 13): + continue try: self._ipmi_channel_hlpr(i, regex, channel) except self._sub_process_excs as exc: |