Author: gnichols
Date: 2011-09-19 13:23:46 +0000 (Mon, 19 Sep 2011)
New Revision: 1077
Modified:
trunk/tests/cpuscaling/cpuscaling.py
Log:
732113 - cpuscaling rewrite
Modified: trunk/tests/cpuscaling/cpuscaling.py
===================================================================
--- trunk/tests/cpuscaling/cpuscaling.py 2011-09-19 13:22:56 UTC (rev 1076)
+++ trunk/tests/cpuscaling/cpuscaling.py 2011-09-19 13:23:46 UTC (rev 1077)
@@ -815,11 +815,14 @@
maximumFrequency = self.getPackageParameter("scaling_max_freq")
currentFrequency = self.getFrequency()
if not maximumFrequency or not currentFrequency:
- self.logWorkloadError("Error: could not determine current
frequency")
- return False
-
- # otherwise
- if not self.checkFrequency(maximumFrequency, currentFrequency):
+ message = "could not verify current frequency."
+ if self.effectiveFrequencySupport:
+ print "Warning: %s" % message
+ else:
+ self.logWorkloadError("Error: %s" % message)
+ sucess = False
+
+ elif not self.checkFrequency(maximumFrequency, currentFrequency):
message = "Current cpu frequency of %s is not set to the maximum
value of %s" % (currentFrequency, maximumFrequency)
if self.effectiveFrequencySupport:
print "Warning: %s" % message
@@ -891,7 +894,7 @@
else:
# some older systems don't support ondemand at all.
- self.logWorkloadError("Warning: %s governor not supported" %
governor)
+ print "Warning: %s governor not supported" % governor
success = True
return success