diff -r c7c26511138f -r 7c4a911dc066 buildframework/helium/builder/python/test-macros.ant.xml --- 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 @@ - - - - - + + + + + + @@ -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.')