Revision d0bb677f

b/snf-tools/synnefo_tools/burnin/common.py
105 105
        super(BurninTestResult, self).addFailure(test, err)
106 106
        self._test_failed(test, err)
107 107

  
108
    # pylint: disable=fixme
109
    def addSkip(self, test, reason):  # noqa
110
        """Called when the test case test is skipped
111

  
112
        If reason starts with "__SkipClass__: " then
113
        we should stop the execution of all the TestSuite.
114

  
115
        TODO: There should be a better way to do this
116

  
117
        """
118
        super(BurninTestResult, self).addSkip(test, reason)
119
        if reason.startswith("__SkipClass__: "):
120
            self.stop()
121

  
108 122

  
109 123
# --------------------------------------------------------------------
110 124
# Helper Classes
......
347 361
            self.info("Test skipped: %s" % msg)
348 362
            self.skipTest(msg)
349 363

  
364
    def _skip_suite_if(self, condition, msg):
365
        """Skip the whole testsuite"""
366
        if condition:
367
            self.info("TestSuite skipped: %s" % msg)
368
            self.skipTest("__SkipClass__: %s" % msg)
369

  
350 370
    # ----------------------------------
351 371
    # Flavors
352 372
    def _get_list_of_flavors(self, detail=False):

Also available in: Unified diff