[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
This commit is contained in:
parent
4abde33785
commit
e3c3c42ce2
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue