Package buildbot :: Package status :: Module testresult
[frames] | no frames]

Source Code for Module buildbot.status.testresult

 1  # This file is part of Buildbot.  Buildbot is free software: you can 
 2  # redistribute it and/or modify it under the terms of the GNU General Public 
 3  # License as published by the Free Software Foundation, version 2. 
 4  # 
 5  # This program is distributed in the hope that it will be useful, but WITHOUT 
 6  # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 7  # FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more 
 8  # details. 
 9  # 
10  # You should have received a copy of the GNU General Public License along with 
11  # this program; if not, write to the Free Software Foundation, Inc., 51 
12  # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 
13  # 
14  # Copyright Buildbot Team Members 
15   
16  from zope.interface import implements 
17  from buildbot import interfaces 
18   
19 -class TestResult:
20 implements(interfaces.ITestResult) 21
22 - def __init__(self, name, results, text, logs):
23 assert isinstance(name, tuple) 24 self.name = name 25 self.results = results 26 self.text = text 27 self.logs = logs
28
29 - def getName(self):
30 return self.name
31
32 - def getResults(self):
33 return self.results
34
35 - def getText(self):
36 return self.text
37
38 - def getLogs(self):
39 return self.logs
40