[Erp5-report] r9641 - /erp5/trunk/utils/erp5mechanize/smartRun.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 4 14:30:25 CEST 2006
Author: vincent
Date: Mon Sep 4 14:30:23 2006
New Revision: 9641
URL: http://svn.erp5.org?rev=9641&view=rev
Log:
max_zope is not the same as min_zope by default, not 1 anymore.
Modified:
erp5/trunk/utils/erp5mechanize/smartRun.py
Modified: erp5/trunk/utils/erp5mechanize/smartRun.py
URL: http://svn.erp5.org/erp5/trunk/utils/erp5mechanize/smartRun.py?rev=9641&r1=9640&r2=9641&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/smartRun.py (original)
+++ erp5/trunk/utils/erp5mechanize/smartRun.py Mon Sep 4 14:30:23 2006
@@ -39,9 +39,8 @@
return result
min_zope = 1
-max_zope = 1
-runBenchmarks = 'runBenchmarks.py'
-userperzope = 'userperzope.py'
+runBenchmarks = './runBenchmarks.py'
+userperzope = './userperzope.py'
min_user = None
max_user = None
testsuite = None
@@ -65,7 +64,7 @@
minzope is the number of zope to start with.
default: %s
maxzope is the number of zope to reach.
- default: %s
+ default: (same as minzope)
runBenchmarks is the name of the program to run a benchmark.
default: %s
userperzope is the name of the program to test if a result fit the
@@ -78,7 +77,7 @@
Optionnally at the end of the arugment list can be given a list of arguments
which will be directly passed to userperzope program.
-''' % (sys.argv[0], min_zope, max_zope, runBenchmarks, userperzope)
+''' % (sys.argv[0], min_zope, runBenchmarks, userperzope)
sys.exit(2)
for o, a in opt_list:
@@ -99,6 +98,9 @@
elif o == '--usercoef':
usercoef = int(a)
+max_zope = min_zope
+if min_user is None:
+ min_user = min_zope
userperzope_args = ' '.join(arg_list)
if testsuite is None:
@@ -108,9 +110,6 @@
if usercoef is None:
print 'Mandatory usercoef agument not given.'
sys.exit(2)
-
-if min_user is None:
- min_user = min_zope
userperzope_arguments = ' '.join(arg_list)
fd, resultpath = tempfile.mkstemp()
More information about the Erp5-report
mailing list