[Erp5-report] r9637 - /erp5/trunk/utils/erp5mechanize/smartRun.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Sep 4 13:38:01 CEST 2006
Author: vincent
Date: Mon Sep 4 13:38:00 2006
New Revision: 9637
URL: http://svn.erp5.org?rev=9637&view=rev
Log:
Handle error where binary is not found.
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=9637&r1=9636&r2=9637&view=diff
==============================================================================
--- erp5/trunk/utils/erp5mechanize/smartRun.py (original)
+++ erp5/trunk/utils/erp5mechanize/smartRun.py Mon Sep 4 13:38:00 2006
@@ -33,7 +33,10 @@
def execute(command):
print command
- return os.system(command)
+ result = os.system(command)
+ if result == 32512:
+ raise 'NotFound'
+ return result
min_zope = 1
max_zope = 1
@@ -128,7 +131,7 @@
result = execute('%s %s %s' % (userperzope, userperzope_args, resultpath))
print 'Result : %s' % (result, )
if result != 0:
- print 'Test with %s users is out of limits.' % (current_usercount, )
+ print 'Test with %s users and %s zopes is out of limits.' % (current_usercount, current_zopecount)
break
usercount = current_usercount
More information about the Erp5-report
mailing list