runtests:
./wvtest.py \
- $(patsubst ./%t,%t/*.py,$(shell find -type d -name t))
+ $(patsubst ./%t,%t/*.py,$(shell find -type d -name t)) \
+ basedir_test.py
python t/twvtest.py
+ python basedir_test.py
test:
../wvtestrun $(MAKE) runtests
oldwd = os.getcwd()
oldpath = sys.path
try:
- os.chdir(path)
+ if path: os.chdir(path)
sys.path += [path, os.path.split(path)[0]]
return func(*args, **kwargs)
finally:
def _runtest(fname, f):
+ import wvtest as _wvtestmod
mod = inspect.getmodule(f)
relpath = os.path.relpath(mod.__file__, os.getcwd()).replace('.pyc', '.py')
print
print
print traceback.format_exc()
tb = sys.exc_info()[2]
- wvtest._result(e, traceback.extract_tb(tb)[1], 'EXCEPTION')
+ _wvtestmod._result(e, traceback.extract_tb(tb)[1], 'EXCEPTION')
def _run_registered_tests():