Author: gnichols Date: 2010-08-18 15:31:06 +0000 (Wed, 18 Aug 2010) New Revision: 640
Modified: trunk/v7/test.py Log: 619252 - CPUSCALING test to show the current CPU frequency before calculating PI
Modified: trunk/v7/test.py =================================================================== --- trunk/v7/test.py 2010-08-18 15:30:13 UTC (rev 639) +++ trunk/v7/test.py 2010-08-18 15:31:06 UTC (rev 640) @@ -446,7 +446,7 @@ params = line.strip().split() loadAvg = float(params[0]) print "Current load average: %s" % loadAvg - sys.stdout.flush + sys.stdout.flush() return loadAvg else: return 0 @@ -454,6 +454,8 @@
def syncDisks(self): try: + print "Syncing disks" + sys.stdout.flush() command = Command("/bin/sync") command.echo() except V7CommandException, e: @@ -464,11 +466,14 @@ def waitForLull(self): waitTime = 5 retryLimit = 20 - self.syncDisks()
+ print "Waiting for low load..." + sys.stdout.flush() retryCount = 0 while self.getLoadAvg() > 1 and retryCount < retryLimit: time.sleep(waitTime) retryCount = retryCount + 1 + print "Done waiting" + sys.stdout.flush()
v7-commits@lists.stg.fedorahosted.org