changeset 1290:622bf474f8c8

benchmark: fix coding style
author Martin Geisler <mg@cs.au.dk>
date Fri, 16 Oct 2009 19:00:14 +0200
parents da51b765a791
children 73ca89381cfa
files apps/benchmark_classes.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/apps/benchmark_classes.py	Fri Oct 16 18:46:28 2009 +0200
+++ b/apps/benchmark_classes.py	Fri Oct 16 19:00:14 2009 +0200
@@ -70,7 +70,7 @@
             print "Need no preprocessing"
             return None
 
-    def doTest(self, d, termination_function):
+    def test(self, d, termination_function):
         self.rt.schedule_callback(d, self.generate_operation_arguments)
         self.rt.schedule_callback(d, self.sync_test)
         self.rt.schedule_callback(d, self.run_test)
@@ -227,9 +227,9 @@
     def benchmark(self, *args):
         sys.stdout.flush()
         sync = self.rt.synchronize()
-        self.doTest(sync, lambda x: x)
+        self.test(sync, lambda x: x)
         self.rt.schedule_callback(sync, self.preprocess)
-        self.doTest(sync, lambda x: self.rt.shutdown())
+        self.test(sync, lambda x: self.rt.shutdown())
 
 
 class NeededDataBenchmarkStrategy(BenchmarkStrategy):
@@ -242,4 +242,4 @@
         sync = self.rt.synchronize()
         self.rt.schedule_callback(sync, lambda x: needed_data)
         self.rt.schedule_callback(sync, self.preprocess)
-        self.doTest(sync, lambda x: self.rt.shutdown())
+        self.test(sync, lambda x: self.rt.shutdown())