From be6c3b80e61e75524601ed709c0f69a532739133 Mon Sep 17 00:00:00 2001 From: Julien Thewys Date: Tue, 9 Mar 2010 18:21:47 +0100 Subject: [PATCH] [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 --- bin/tools/yaml_import.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/tools/yaml_import.py b/bin/tools/yaml_import.py index 5df4966c3ba..fed3e81299e 100644 --- a/bin/tools/yaml_import.py +++ b/bin/tools/yaml_import.py @@ -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):