As a script, not as a module

This commit is contained in:
Pedro Algarvio 2019-04-20 18:08:51 +01:00
parent 6fc0b76576
commit 6bf50cdbee
No known key found for this signature in database
GPG Key ID: BB36BF6584A298FF

View File

@ -273,7 +273,7 @@ def _runtests(session, coverage, cmd_args):
_create_ci_directories()
try:
if coverage is True:
_run_with_coverage(session, 'coverage', 'run', '-m', 'tests.runtests', *cmd_args)
_run_with_coverage(session, 'coverage', 'run', os.path.join('tests', 'runtests.py'), *cmd_args)
else:
session.run('python', os.path.join('tests', 'runtests.py'), *cmd_args)
except CommandFailed: