[svn r37303] Made functional test use an absolute path to py.test.

--HG--
branch : trunk
This commit is contained in:
guido 2007-01-24 22:16:32 +01:00
parent 4963148482
commit 98c1c1809c
1 changed files with 4 additions and 3 deletions

View File

@ -73,12 +73,13 @@ def setup_fs_project():
def test_apigen_functional():
fs_root, package_name = setup_fs_project()
tempdir = py.test.ensuretemp('test_apigen_functional_results')
parentdir = py.magic.autopath().dirpath().dirpath()
pydir = py.magic.autopath().dirpath().dirpath().dirpath()
pkgdir = fs_root.join('pkg')
try:
output = py.process.cmdexec('APIGEN_TARGET="%s" py.test '
output = py.process.cmdexec('APIGEN_TARGET="%s" %s/bin/py.test '
'--apigen="%s/apigen.py" "%s"' % (
tempdir, parentdir, pkgdir))
tempdir, pydir, pydir.join('apigen'),
pkgdir))
except py.error.Error, e:
print e.out
raise