Commit 010a69d0 authored by Nicolas Delaby's avatar Nicolas Delaby

improve error message to ease debugging

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@44659 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c6513e84
......@@ -51,9 +51,10 @@ def run(handler_name):
python_extension = '.py'
if test_name[-3:] == python_extension:
test_name = test_name[:-3]
if not path.exists(path.join(environment_path,
'%s%s' % (test_name, python_extension))):
exit("%s not exists\n" % test_name)
full_path = path.join(environment_path, '%s%s' % (test_name,
python_extension))
if not path.exists(full_path):
exit("%s does not exists\n" % full_path)
from cloudooo.handler.tests.handlerTestCase import startFakeEnvironment
from cloudooo.handler.tests.handlerTestCase import stopFakeEnvironment
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment