Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d16289

Browse files
committedDec 2, 2019
Adding support for HMI tests to execute even on P8 platform
Signed-off-by: Pavaman Subramaniyam <pavsubra@linux.vnet.ibm.com>
1 parent 13c3a87 commit 8d16289

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎testcases/OpTestHMIHandling.py

+13
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,19 @@ def setUp(self):
9090

9191
log.debug("Setting up to run HMIHandling on CPU={} Revision={}".format(
9292
self.cpu, self.revision))
93+
elif self.cpu in ["POWER8", "POWER8E", "POWER8NVL"]:
94+
self.revision = ''.join(self.cv_HOST.host_run_command("grep '^revision' /proc/cpuinfo |uniq|sed -e 's/^.*: //;s/ (.*)//;'", console=1))
95+
if not self.revision in ["1.0", "2.0", "2.1"]:
96+
log.debug("Skipping, HMIHandling NOT supported on CPU={} Revision={}"
97+
.format(self.cpu, self.revision))
98+
raise unittest.SkipTest("HMIHandling not supported on CPU={} Revision={}"
99+
.format(self.cpu, self.revision))
100+
else:
101+
log.debug("Skipping, HMIHandling NOT supported on CPU={} Revision={}"
102+
.format(self.cpu, self.revision))
103+
raise unittest.SkipTest("HMIHandling not supported on CPU={} Revision={}"
104+
.format(self.cpu, self.revision))
105+
log.debug("Setting up to run HMIHandling on CPU={} Revision={}".format(self.cpu, self.revision))
93106

94107
def clear_stop(self):
95108
self.cv_SYSTEM.stop = 0

0 commit comments

Comments
 (0)
Please sign in to comment.