[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:
parent
d12f8e60e2
commit
be6c3b80e6
|
@ -718,12 +718,8 @@ class YamlInterpreter(object):
|
||||||
self._process_node(node)
|
self._process_node(node)
|
||||||
except YamlImportException, e:
|
except YamlImportException, e:
|
||||||
self.logger.log(logging.ERROR, e)
|
self.logger.log(logging.ERROR, e)
|
||||||
except YamlImportAbortion, e:
|
|
||||||
self.logger.log(logging.ERROR, e)
|
|
||||||
self.cr.rollback()
|
|
||||||
return
|
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.cr.rollback()
|
self.logger.log(logging.ERROR, e)
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
def _process_node(self, node):
|
def _process_node(self, node):
|
||||||
|
|
Loading…
Reference in New Issue