Author: jcwillia Date: 2010-01-27 20:06:01 +0000 (Wed, 27 Jan 2010) New Revision: 339
Modified: trunk/tests/hwlatdetect/v7_hwlatdetect.py trunk/tests/rteval/v7_rteval.py Log: modify rteval plan() and add runtime requires
Modified rteval test to check for rt kernel before looking at /sys/class/dmi/id info. Also added list of required packages to init() routine in self.required
CC: David Sommerseth davids@redhat.com Signed-off-by: Clark Williams williams@redhat.com
Modified: trunk/tests/hwlatdetect/v7_hwlatdetect.py =================================================================== --- trunk/tests/hwlatdetect/v7_hwlatdetect.py 2010-01-27 11:58:02 UTC (rev 338) +++ trunk/tests/hwlatdetect/v7_hwlatdetect.py 2010-01-27 20:06:01 UTC (rev 339) @@ -42,7 +42,12 @@ self.data = {} self.hwlatdetect = None self.deviceClass = DeviceClass.processor - + self.owner = "Clark Williams williams@redhat.com" + self.path = "v7/tests/hwlatdetect" + self.version = "0.1" + self.description = "hardware latency detector" + self.requires = "rt-setup rt-tests ibm-prtm" + def plan(self, devices): ret = list() v = os.uname()[3]
Modified: trunk/tests/rteval/v7_rteval.py =================================================================== --- trunk/tests/rteval/v7_rteval.py 2010-01-27 11:58:02 UTC (rev 338) +++ trunk/tests/rteval/v7_rteval.py 2010-01-27 20:06:01 UTC (rev 339) @@ -32,6 +32,11 @@ self.data = {} self.rteval = None self.deviceClass = DeviceClass.processor + self.owner = "David Sommerseth davids@redhat.com" + self.path = "v7/tests/rteval" + self.version = "0.1" + self.description = "Realtime hardware evaluation tool" + self.requires = "rt-setup rteval rt-eval-loads rt-tests ibm-prtm"
def __read_sys_dmi(self, name): try: @@ -45,6 +50,11 @@
def plan(self, devices): + ret = list() + v = os.uname()[3] + if v.find(" RT ") == -1: + return ret + # Check if we have some interesting data from the /sys/class/dmi/id directory self.data['sysdmi'] = {} files = ('sys_vendor','product_name','product_version') @@ -53,10 +63,6 @@ if self.data['sysdmi'][f] is None: # If one of the /sys/class/dmi/id files is missing, abort this test planning return () - - - - ret = list() ret.append(self.makeCopy()) return ret
v7-commits@lists.stg.fedorahosted.org