Commit 94e01992 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix text detection.

parent 8c0efdc7
...@@ -53,13 +53,15 @@ def run(): ...@@ -53,13 +53,15 @@ def run():
python_extension = '.py' python_extension = '.py'
if test_name[-3:] == python_extension: if test_name[-3:] == python_extension:
test_name = test_name[:-3] test_name = test_name[:-3]
handler_path = None
for env_handler_path in environment_path: for env_handler_path in environment_path:
full_path = path.join(env_handler_path, '%s%s' % (test_name, full_path = path.join(env_handler_path, '%s%s' % (test_name,
python_extension)) python_extension))
if path.exists(full_path): if path.exists(full_path):
handler_path = env_handler_path handler_path = env_handler_path
break break
else:
if handler_path is None:
exit("%s does not exists\n" % full_path) exit("%s does not exists\n" % full_path)
from cloudooo.tests.handlerTestCase import startFakeEnvironment from cloudooo.tests.handlerTestCase import startFakeEnvironment
......
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