projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf3a3b
)
[FIX] only run test modules called test_*, similar to normal autodiscovery
author
Xavier Morel
<xmo@openerp.com>
Mon, 17 Feb 2014 15:15:21 +0000
(16:15 +0100)
committer
Xavier Morel
<xmo@openerp.com>
Mon, 17 Feb 2014 15:15:21 +0000
(16:15 +0100)
bzr revid: xmo@openerp.com-
20140217151521
-vyg130iznzojv3e4
openerp/modules/module.py
patch
|
blob
|
history
diff --git
a/openerp/modules/module.py
b/openerp/modules/module.py
index
9aa12b9
..
a332d0b
100644
(file)
--- a/
openerp/modules/module.py
+++ b/
openerp/modules/module.py
@@
-333,7
+333,8
@@
def get_test_modules(module):
# include submodules too
result = [mod_obj for name, mod_obj in sys.modules.iteritems()
if mod_obj # mod_obj can be None
- if name.startswith(module)]
+ if name.startswith(module)
+ if re.search(r'test_\w+$', name)]
return result
# Use a custom stream object to log the test executions.