Skip to content
Snippets Groups Projects
Commit e3c3c42c authored by Xavier Morel's avatar Xavier Morel
Browse files

[IMP] run_tests

* deduplicate addons paths, on runbot the tests are run twice and
  indeed when listing test modules some are listed twice, maybe due to
  duplicated addons paths?

  Test modules:
     openerp.tests.test_mail_examples
     openerp.tests.test_uninstall
     openerp.addons.web.tests.test_js
     openerp.addons.website.tests.test_requests
     openerp.addons.project.tests.test_project_base
     openerp.addons.web.tests.test_js
     openerp.addons.website.tests.test_requests
     openerp.addons.project.tests.test_project_base

* flush stdout after having printed test modules list to try and
  ensure it appears before the tests result (the TextTestRunner
  outputs to stderr and this gets flushed a lot as there's a huge
  amount of data going into it)

bzr revid: xmo@openerp.com-20131106134032-m85o6osa7ezgizt9
parent 4abde337
No related branches found
No related tags found
No related merge requests found
......@@ -112,6 +112,8 @@ def run(args):
else:
args.addons = []
# ensure no duplication in addons paths
args.addons = list(set(args.addons))
config['addons_path'] = ','.join(args.addons)
import logging
......@@ -139,6 +141,7 @@ def run(args):
for test_module in test_modules:
print ' ', test_module.__name__
print
sys.stdout.flush()
if not args.dry_run:
suite = unittest2.TestSuite()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment