Author: gnichols Date: 2010-01-12 16:45:24 +0000 (Tue, 12 Jan 2010) New Revision: 291
Modified: trunk/tests/cpuscaling/cpuscaling.py Log: 474856 - CPUScaling Fails in HTS 5.3-3.
Modified: trunk/tests/cpuscaling/cpuscaling.py =================================================================== --- trunk/tests/cpuscaling/cpuscaling.py 2010-01-12 16:35:52 UTC (rev 290) +++ trunk/tests/cpuscaling/cpuscaling.py 2010-01-12 16:45:24 UTC (rev 291) @@ -357,7 +357,7 @@ # run to verify the base line execution time, bail if self.retryTolerance margin cannot be acheived in self.retryLimit runs. self.minimumFrequencyTestTime = self.runLoadTest() if not self.minimumFrequencyTestTime: - success = False + return False print "Minumum frequency load test time: %.2f" % self.minimumFrequencyTestTime
# 11. Set the cpu speed to it's highest value as above. @@ -375,7 +375,7 @@ # 12. Repeat workload test, record timing self.maximumFrequencyTestTime = self.runLoadTest() if not self.maximumFrequencyTestTime: - success = False + return False print "Maximum frequency load test time: %.2f" % self.maximumFrequencyTestTime
# 13. Verify MHz increase is comparable to time % decrease( eg. slow MHz/fast MHz ~= fast time/slow time; @@ -424,7 +424,7 @@ # 17. Repeat workload test, record timing; also during testing verify the ~scaling_cur_freq reaches ~scaling_max_freq self.onDemandTestTime = self.runLoadTest() if not self.onDemandTestTime: - success = False + return False print "On Demand load test time: %.2f" % self.onDemandTestTime
# 18. Compare the timing to the max results from earlier, again time should be within self.speedUpTolerance @@ -462,7 +462,7 @@ currentFrequency = self.getParameter("scaling_cur_freq") if not maximumFrequency or not currentFrequency or (maximumFrequency != currentFrequency): print "Error: Current cpu frequency of %.2f is not set to the maximum value of %.2f" % (currentFrequency, maximumFrequency) - success = False + return False
# 22. Repeat workload test, record timing, also verify frequency does not drop during run self.performanceTestTime = self.runLoadTest()
v7-commits@lists.stg.fedorahosted.org