diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-06-22 11:31:07 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-06-22 11:31:07 +0200 |
| commit | 4cd699df15c386871a918d4fa5066acfa5a5fda1 (patch) | |
| tree | 340b03c74876053ac0f1486fdb137dffaee28a8b /openerp/modules/module.py | |
| parent | e7ccf520437664e06d7edaadfce6704b09da9888 (diff) | |
[IMP] js testing
- output "error" if any qunit tests failed
- failed js tests are logged as errors
- when running phantomjs considere empty waiting condition or initialisation code as "true"
- lint phantomtest.js file
Diffstat (limited to 'openerp/modules/module.py')
| -rw-r--r-- | openerp/modules/module.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/openerp/modules/module.py b/openerp/modules/module.py index 8f34a74f882..cd21e681a8b 100644 --- a/openerp/modules/module.py +++ b/openerp/modules/module.py @@ -384,11 +384,12 @@ class TestStream(object): if self.r.match(s): return first = True - for c in s.split('\n'): + level = logging.ERROR if s.startswith(('ERROR', 'FAIL', 'Traceback')) else logging.INFO + for c in s.splitlines(): if not first: c = '` ' + c first = False - self.logger.info(c) + self.logger.log(level, c) current_test = None |
