[FIX] Do not rollback failing tests for the moment:

XML and YAML files are all loaded in the same transaction.
We should add a section for tests in __terp__ and load each test file
in its own transaction so that:
- they are independent from each other,
- failing tests can safely be rolled back,
- all tests can still be run in one pass.

bzr revid: jth@openerp.com-20100309172147-m0rkmc30yjae2605
This commit is contained in:
Julien Thewys 2010-03-09 18:21:47 +01:00
parent d12f8e60e2
commit be6c3b80e6
1 changed files with 1 additions and 5 deletions

View File

@ -718,12 +718,8 @@ class YamlInterpreter(object):
self._process_node(node)
except YamlImportException, e:
self.logger.log(logging.ERROR, e)
except YamlImportAbortion, e:
self.logger.log(logging.ERROR, e)
self.cr.rollback()
return
except Exception, e:
self.cr.rollback()
self.logger.log(logging.ERROR, e)
raise e
def _process_node(self, node):