From 8d162894d4d36441dccc95988321fc0c4034d808 Mon Sep 17 00:00:00 2001 From: Pavaman Subramaniyam Date: Mon, 25 Mar 2019 08:59:13 -0400 Subject: [PATCH] Adding support for HMI tests to execute even on P8 platform Signed-off-by: Pavaman Subramaniyam --- testcases/OpTestHMIHandling.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/testcases/OpTestHMIHandling.py b/testcases/OpTestHMIHandling.py index 11a77fabb..65326bc55 100644 --- a/testcases/OpTestHMIHandling.py +++ b/testcases/OpTestHMIHandling.py @@ -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