|
# This file is part of Buildbot. Buildbot is free software: you can # redistribute it and/or modify it under the terms of the GNU General Public # License as published by the Free Software Foundation, version 2. # # This program is distributed in the hope that it will be useful, but WITHOUT # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # # Copyright Buildbot Team Members
"""A ShellCommand that sniffs subunit output. """
# importing here gets around an import loop
# figure out all statistics about the run
(total, total == 1 and "test" or "tests"), "passed"] else: else: results = FAILURE text.append("Total %d test(s)" % total) if failures: text.append("%d %s" % \ (failures, failures == 1 and "failure" or "failures")) if errors: text.append("%d %s" % \ (errors, errors == 1 and "error" or "errors")) text2 = "%d %s" % (count, (count == 1 and 'test' or 'tests'))
text.append("%d %s" % (skips, skips == 1 and "skip" or "skips"))
#TODO: expectedFailures/unexpectedSuccesses
return FAILURE
problems += "%s\n%s" % (test.id(), err) self.addCompleteLog("problems", problems)
|