':return: The number of tests that failed or -1 if unknown.'

def num_tests_failed(self):

    self._get_pidfile_info()
    if (self._state.num_tests_failed is None):
        return (-1)
    return self._state.num_tests_failed
