Skip to content

Commit 549802e

Browse files
committed
OpTestInbandUsbInterface: Skip the tests in FSP systems
Inband IPMI USB Interface works only in BMC/OpenPOWER systems. In fsp systems skip these tests as this is not implemented/supported. Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>
1 parent c3238e5 commit 549802e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

testcases/OpTestInbandUsbInterface.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,39 @@ def full_suite():
5858
def skiroot_full_suite():
5959
return unittest.defaultTestLoader.loadTestsFromTestCase(SkirootInbandUSB)
6060

61+
conf = OpTestConfiguration.conf
62+
6163
class BasicInbandUSB(BasicInbandIPMI):
6264
def setUp(self, ipmi_method=BMC_CONST.IPMITOOL_USB):
65+
self.bmc_type = conf.args.bmc_type
66+
if "FSP" in self.bmc_type:
67+
self.skipTest("OP BMC specific")
6368
super(BasicInbandUSB, self).setUp(ipmi_method=ipmi_method)
6469

6570
class InbandUSB(OpTestInbandIPMI):
6671
def setUp(self, ipmi_method=BMC_CONST.IPMITOOL_USB):
72+
self.bmc_type = conf.args.bmc_type
73+
if "FSP" in self.bmc_type:
74+
self.skipTest("OP BMC specific")
6775
super(InbandUSB, self).setUp(ipmi_method=ipmi_method)
6876

6977
class SkirootBasicInbandUSB(SkirootBasicInbandIPMI):
7078
def setUp(self, ipmi_method=BMC_CONST.IPMITOOL_USB):
79+
self.bmc_type = conf.args.bmc_type
80+
if "FSP" in self.bmc_type:
81+
self.skipTest("OP BMC specific")
7182
super(SkirootBasicInbandUSB, self).setUp(ipmi_method=ipmi_method)
7283

7384
class SkirootInbandUSB(SkirootFullInbandIPMI):
7485
def setUp(self, ipmi_method=BMC_CONST.IPMITOOL_USB):
86+
self.bmc_type = conf.args.bmc_type
87+
if "FSP" in self.bmc_type:
88+
self.skipTest("OP BMC specific")
7589
super(SkirootInbandUSB, self).setUp(ipmi_method=ipmi_method)
7690

7791
class ExperimentalInbandUSB(ExperimentalInbandIPMI):
7892
def setUp(self, ipmi_method=BMC_CONST.IPMITOOL_USB):
93+
self.bmc_type = conf.args.bmc_type
94+
if "FSP" in self.bmc_type:
95+
self.skipTest("OP BMC specific")
7996
super(ExperimentalInbandUSB, self).setUp(ipmi_method=ipmi_method)

0 commit comments

Comments
 (0)