[apycotlib] update testexec status to error when preprocessor fails
authorPaul Tonelli <paul.tonelli@logilab.fr>
Wed, 09 Apr 2014 11:37:31 +0200
changeset 1488 05ddbef90877
parent 1487 c9c9ccc9fd07
child 1489 286b8e16ffe4
[apycotlib] update testexec status to error when preprocessor fails previously, the status would stay at 'waiting execution' or 'success' even if no checker was run.
_apycotlib/atest.py
--- a/_apycotlib/atest.py	Wed Apr 16 17:57:25 2014 +0200
+++ b/_apycotlib/atest.py	Wed Apr 09 11:37:31 2014 +0200
@@ -264,6 +264,7 @@
             self.writer.fatal(msg, ex.__class__.__name__, preprocessor.id, ex,
                               path=path, tb=True)
             self._failed_pp.add(pptype)
+            self.global_status = min(self.global_status, ERROR)
 
     def run_checker(self, id, displayname=None, nonexecuted=False, **kwargs):
         """run all checks in the test environment"""