[Erp5-report] r8948 - /erp5/trunk/utils/erp5mechanize/runBenchmarks.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Aug 1 10:39:41 CEST 2006


Author: vincent
Date: Tue Aug  1 10:39:39 2006
New Revision: 8948

URL: http://svn.erp5.org?rev=8948&view=rev
Log:
Add support for dynamically generated parameters. Can be useful for generating logfile names, for exmaple.

Modified:
    erp5/trunk/utils/erp5mechanize/runBenchmarks.py

Modified: erp5/trunk/utils/erp5mechanize/runBenchmarks.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/runBenchmarks.py?rev=8948&r1=8947&r2=8948&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/runBenchmarks.py (original)
+++ erp5/trunk/utils/erp5mechanize/runBenchmarks.py Tue Aug  1 10:39:39 2006
@@ -279,8 +279,11 @@
     file.close()
     del kw['config'] # It should not be passed to main
     if module.hasattr('runBenchmarks_parameter_list'):
+      initial_kw = kw
       for k in possible_arg_list:
         if k != 'config' and module.runBenchmarks_parameter_list.has_key[k] and not kw.has_key[k]:
+          if callable(module.runBenchmarks_parameter_list[k]):
+            module.runBenchmarks_parameter_list[k] = module.runBenchmarks_parameter_list[k](initial_kw)
           kw[k] = module.runBenchmarks_parameter_list[k]
     args.append(module.instance_list)
     args.append(module.test_list)




More information about the Erp5-report mailing list