"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/test/util/reporter.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

reporter.py  (buildbot-3.0.2):reporter.py  (buildbot-3.1.0)
skipping to change at line 57 skipping to change at line 57
return build return build
@defer.inlineCallbacks @defer.inlineCallbacks
def insert_build_finished(self, results=SUCCESS, **kwargs): def insert_build_finished(self, results=SUCCESS, **kwargs):
return (yield self.insert_build(results=results, **kwargs)) return (yield self.insert_build(results=results, **kwargs))
@defer.inlineCallbacks @defer.inlineCallbacks
def insert_build_new(self, **kwargs): def insert_build_new(self, **kwargs):
return (yield self.insert_build(results=None, **kwargs)) return (yield self.insert_build(results=None, **kwargs))
@defer.inlineCallbacks
def insert_buildrequest_new(self, insert_patch=False, **kwargs):
self.db = self.master.db
self.db.insertTestData([
fakedb.Master(id=92),
fakedb.Worker(id=13, name='wrk'),
fakedb.Builder(id=79, name='Builder0'),
fakedb.Builder(id=80, name='Builder1'),
fakedb.Buildset(id=98, results=None, reason="testReason1",
parent_buildid=None),
fakedb.BuildRequest(id=11, buildsetid=98, builderid=79)
])
patchid = 99 if insert_patch else None
self.db.insertTestData([
fakedb.BuildsetSourceStamp(buildsetid=98, sourcestampid=234),
fakedb.SourceStamp(
id=234,
branch=self.reporter_test_branch,
project=self.reporter_test_project,
revision=self.reporter_test_revision,
repository=self.reporter_test_repo,
codebase=self.reporter_test_codebase,
patchid=patchid),
fakedb.Patch(id=99, patch_base64='aGVsbG8sIHdvcmxk',
patch_author='him@foo', patch_comment='foo', subdir='/f
oo',
patchlevel=3)
])
request = yield self.master.data.get(("buildrequests", 11))
return request
def insertTestData(self, buildResults, finalResult, insertSS=True, def insertTestData(self, buildResults, finalResult, insertSS=True,
parentPlan=False, insert_patch=False): parentPlan=False, insert_patch=False):
self.db = self.master.db self.db = self.master.db
self.db.insertTestData([ self.db.insertTestData([
fakedb.Master(id=92), fakedb.Master(id=92),
fakedb.Worker(id=13, name='wrk'), fakedb.Worker(id=13, name='wrk'),
fakedb.Builder(id=79, name='Builder0'), fakedb.Builder(id=79, name='Builder0'),
fakedb.Builder(id=80, name='Builder1'), fakedb.Builder(id=80, name='Builder1'),
fakedb.Buildset(id=98, results=finalResult, reason="testReason1", fakedb.Buildset(id=98, results=finalResult, reason="testReason1",
parent_buildid=19 if parentPlan else None), parent_buildid=19 if parentPlan else None),
 End of changes. 1 change blocks. 
0 lines changed or deleted 33 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)