buildframework/helium/builder/python/test-macros.ant.xml
changeset 628 7c4a911dc066
parent 587 85df38eb4012
--- a/buildframework/helium/builder/python/test-macros.ant.xml	Wed Jun 16 16:51:40 2010 +0300
+++ b/buildframework/helium/builder/python/test-macros.ant.xml	Fri Aug 13 14:59:05 2010 +0300
@@ -28,11 +28,12 @@
     
     <target name="pt">
         <pathconvert pathsep=":" property="python.path">
-            <fileset dir="${python.builder.dir}/lib" includes="**/*.egg" excludes="jython*"/>
-            <fileset dir="${lib.dir}" includes="**/*.egg"/>
-            <dirset dir="${lib.dir}"/>
-            <fileset dir="${module.bin.dir}" includes="**/${ant.project.name}*.egg"/>
-            <dirset dir="${basedir}/lib"/>
+            <fileset dir="${python.builder.dir}/lib" includes="*.egg" excludes="jython*"/>
+            <fileset dir="${lib.dir}" includes="zipsafe/*.egg" />
+            <dirset dir="${lib.dir}" includes="zipnotsafe/*.egg" />
+            <dirset dir="${lib.dir}/zipsafe" />
+            <!--<fileset dir="${module.bin.dir}" includes="${ant.project.name}*.egg"/>-->
+            <dirset dir="${basedir}" includes="lib"/>
         </pathconvert>
         <pathconvert pathsep=" " property="python.modules.coverage">
             <fileset dir="${basedir}" includes="**/*.py"/>
@@ -55,9 +56,10 @@
 import sys
 import os
 import shutil
+
 for p in project.getProperty('python.path').split(':'):
-    if 'amara' not in p:
-        sys.path.append(p)
+    sys.path.append(p)
+    
 os.chdir(project.getProperty('lib.dir'))
 if os.path.exists('build'):
     shutil.rmtree('build')
@@ -68,9 +70,11 @@
 
 result = True
 if ' ' in args:
-    result = nose.run(argv=['-v', testdir + 'tests'])
+    argv = ['-v', testdir + 'tests']
+    result = nose.run(argv=argv)
 elif 'cpython' not in args:
-    result = nose.run(argv=['-v', args2])
+    argv = ['-v', args2]
+    result = nose.run(argv=argv)
 print >> sys.stderr
 if not result:
     raise Exception('Jython unittest failure.')