Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for HMI tests to execute even on P8 platform #459

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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