[svn r37303] Made functional test use an absolute path to py.test.
--HG-- branch : trunk
This commit is contained in:
parent
4963148482
commit
98c1c1809c
|
@ -73,12 +73,13 @@ def setup_fs_project():
|
||||||
def test_apigen_functional():
|
def test_apigen_functional():
|
||||||
fs_root, package_name = setup_fs_project()
|
fs_root, package_name = setup_fs_project()
|
||||||
tempdir = py.test.ensuretemp('test_apigen_functional_results')
|
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')
|
pkgdir = fs_root.join('pkg')
|
||||||
try:
|
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"' % (
|
'--apigen="%s/apigen.py" "%s"' % (
|
||||||
tempdir, parentdir, pkgdir))
|
tempdir, pydir, pydir.join('apigen'),
|
||||||
|
pkgdir))
|
||||||
except py.error.Error, e:
|
except py.error.Error, e:
|
||||||
print e.out
|
print e.out
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue