Skip to content

Commit

Permalink
Adding support for HMI tests to execute even on P8 platform
Browse files Browse the repository at this point in the history
Signed-off-by: Pavaman Subramaniyam <[email protected]>
  • Loading branch information
PavamanSubramaniyam committed Dec 2, 2019
1 parent 13c3a87 commit 8d16289
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions testcases/OpTestHMIHandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,19 @@ def setUp(self):

log.debug("Setting up to run HMIHandling on CPU={} Revision={}".format(
self.cpu, self.revision))
elif self.cpu in ["POWER8", "POWER8E", "POWER8NVL"]:
self.revision = ''.join(self.cv_HOST.host_run_command("grep '^revision' /proc/cpuinfo |uniq|sed -e 's/^.*: //;s/ (.*)//;'", console=1))
if not self.revision in ["1.0", "2.0", "2.1"]:
log.debug("Skipping, HMIHandling NOT supported on CPU={} Revision={}"
.format(self.cpu, self.revision))
raise unittest.SkipTest("HMIHandling not supported on CPU={} Revision={}"
.format(self.cpu, self.revision))
else:
log.debug("Skipping, HMIHandling NOT supported on CPU={} Revision={}"
.format(self.cpu, self.revision))
raise unittest.SkipTest("HMIHandling not supported on CPU={} Revision={}"
.format(self.cpu, self.revision))
log.debug("Setting up to run HMIHandling on CPU={} Revision={}".format(self.cpu, self.revision))

def clear_stop(self):
self.cv_SYSTEM.stop = 0
Expand Down

0 comments on commit 8d16289

Please sign in to comment.