Revision 3139b628

b/snf-tools/synnefo_tools/burnin/common.py
77 77
    def startTest(self, test):  # noqa
78 78
        """Called when the test case test is about to be run"""
79 79
        super(BurninTestResult, self).startTest(test)
80
        logger.log(test.__class__.__name__, test.shortDescription())
80
        logger.log(
81
            test.__class__.__name__,
82
            test.shortDescription() or 'Test %s' % test.__class__.__name__)
81 83

  
82 84
    # Method could be a function. pylint: disable-msg=R0201
83 85
    def _test_failed(self, test, err):
b/snf-tools/synnefo_tools/burnin/logger.py
148 148
        # We will add our message in this location
149 149
        for (index, obj) in enumerate(sect_locs):
150 150
            if section in contents[obj]:
151
                return sect_locs[index+1] - 3
151
                return sect_locs[index + 1] - 3
152 152

  
153 153
    # We didn't find our section??
154 154
    sys.stderr.write("Section %s could not be found in logging file\n"

Also available in: Unified diff