[Zope-CVS] CVS: Packages/TestScripts - autotester.py:1.19

Chris Withers chrisw@nipltd.com
Wed, 26 Feb 2003 11:24:36 -0500


Update of /cvs-repository/Packages/TestScripts
In directory cvs.zope.org:/tmp/cvs-serv32745/TestScripts

Modified Files:
	autotester.py 
Log Message:
Fix to allow multiple build blocks.

=== Packages/TestScripts/autotester.py 1.18 => 1.19 ===
--- Packages/TestScripts/autotester.py:1.18	Wed Nov 27 13:32:47 2002
+++ Packages/TestScripts/autotester.py	Wed Feb 26 11:24:35 2003
@@ -61,9 +61,11 @@
     e.close()
     return result
 
-def xml_execute(command,p):
-    command = command[0]
-    return execute(command['location'][0](),p,command['command'][0](),command['options'][0]())
+def xml_execute(commands,p):
+    result=[]
+    for command in commands:
+        result.append(execute(command['location'][0](),p,command['command'][0](),command['options'][0]()))
+    return '\n'.join(result)
 
 # get our original directory
 home = getcwd()