diff options
| author | Xavier Morel <xmo@openerp.com> | 2014-02-17 16:15:21 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2014-02-17 16:15:21 +0100 |
| commit | 665e2629e272426293b90a7b554289231c8b4e10 (patch) | |
| tree | 9ce7bb6146d32e5406a7b2069859999da4083ce9 /openerp/modules/module.py | |
| parent | 8cf3a3b0b84d8f344d6c8603bbc96ff02d0333b4 (diff) | |
[FIX] only run test modules called test_*, similar to normal autodiscovery
bzr revid: xmo@openerp.com-20140217151521-vyg130iznzojv3e4
Diffstat (limited to 'openerp/modules/module.py')
| -rw-r--r-- | openerp/modules/module.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openerp/modules/module.py b/openerp/modules/module.py index 9aa12b998d0..a332d0ba804 100644 --- 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. |
