diff options
author | PMR <pmr@pmr-lander> | 2020-07-16 10:01:33 +0000 |
---|---|---|
committer | PMR <pmr@pmr-lander> | 2020-07-16 10:01:33 +0000 |
commit | e97a2b985acf8ac0e9f7a7741e7920c55b10518c (patch) | |
tree | 79ddb4c5495b373faa158a51eff8b0f62de6e156 /bin | |
parent | c8fd942af9ac6a1a85a3307581168aad01d28080 (diff) | |
parent | dc31a492c48147468215c475adf6429b9ab786ab (diff) |
Merge #385840 from ~bladernr/plainbox-provider-checkbox:1883761-dont-load-power-ipmi-driver-on-nonpower
bin/ipmi_test.py: Don't bother loading ipmi_powernv driver on non-power systems
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ipmi_test.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/ipmi_test.py b/bin/ipmi_test.py index 0aefea1..91f3524 100755 --- a/bin/ipmi_test.py +++ b/bin/ipmi_test.py @@ -4,7 +4,7 @@ Copyright (C) 2020 Canonical Ltd. Authors Adrian Lane <adrian.lane@canonical.com> - + Jeff Lane <jeff@ubuntu.com> This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3, as published by the Free Software Foundation. @@ -23,6 +23,7 @@ Tests IPMI subsystem on SUT. import re import shutil import sys +import platform import argparse import logging from subprocess import ( @@ -136,7 +137,12 @@ class FreeIpmiTest: if module in output: logging.info('- %s already loaded' % module) else: - self._modprobe_hlpr(module) + if (module == 'ipmi_powernv' and + platform.machine() != 'ppc64le'): + logging.info(' * Skipping module %s, incorrect ' + 'system architecture' % module) + else: + self._modprobe_hlpr(module) logging.info('') except self._sub_process_excs as exc: self._process_exc(exc, self.load_kernel_mods.__qualname__) |