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 Mar 25, 2019
1 parent 84bf8ae commit 4b2d48d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testcases/OpTestHMIHandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ def setUp(self):
.format(self.cpu, self.revision))
raise unittest.SkipTest("HMIHandling not supported 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))
Expand Down

0 comments on commit 4b2d48d

Please sign in to comment.