summaryrefslogtreecommitdiff
path: root/bin/pytest
blob: 139872b079dd3e7375ba591510cf38c557c3d92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python

import os, sys
import os.path as osp
from logilab.common import testlib

curdir = os.getcwd()
if osp.exists(osp.join(curdir, '__pkginfo__.py')):
    projdir = osp.abspath(curdir)
elif osp.exists(osp.join(curdir, '..')):
    projdir = osp.abspath(osp.join(curdir, '..'))
else:
    print 'fixme: cannot be run from here.'
    sys.exit(1)
testlib.main(osp.join(projdir,'test'))