Skip to content

Commit

Permalink
Minor fixes to try scheduler and its integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 25, 2013
1 parent 48a1dbc commit 25ae2d7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions master/buildbot/schedulers/trysched.py
Expand Up @@ -214,6 +214,7 @@ def handleJobFile(self, filename, f):
comment = parsed_job['comment']

sourcestamp = dict(branch=parsed_job['branch'],
codebase='',
revision=parsed_job['baserev'],
patch_body=parsed_job['patch_body'],
patch_level=parsed_job['patch_level'],
Expand Down
7 changes: 5 additions & 2 deletions master/buildbot/test/integration/test_try_client.py
Expand Up @@ -188,7 +188,10 @@ def startMaster(self, sch, startSlave=False, wantPBListener=False):
self.failIf(mock_reactor.stop.called,
"startService tried to stop the reactor; check logs")

# hang out until the scheduler has registered its PB port
# wait until the scheduler is active
yield waitFor(lambda: self.sch.active)

# and, for Try_Userpass, until it's registered its port
if isinstance(self.sch, trysched.Try_Userpass):
def getSchedulerPort():
if not self.sch.registrations:
Expand Down Expand Up @@ -246,7 +249,7 @@ def test_userpass_wait(self):
'Delivering job; comment= None',
'job has been delivered',
'All Builds Complete',
'a: success (build successful)',
'a: success (build successful one two)',
])
buildsets = yield self.master.db.buildsets.getBuildsets()
self.assertEqual(len(buildsets), 1)
Expand Down
5 changes: 5 additions & 0 deletions master/buildbot/test/unit/test_schedulers_trysched.py
Expand Up @@ -540,6 +540,7 @@ def check(_):
sourcestamps=[
dict(
branch='trunk',
codebase='',
patch_author='who',
patch_body='this is my diff, -- ++, etc.',
patch_comment='comment',
Expand Down Expand Up @@ -592,6 +593,7 @@ def check(_):
sourcestamps=[
dict(
branch='trunk',
codebase='',
patch_author='who',
patch_body='this is my diff, -- ++, etc.',
patch_comment='comment',
Expand Down Expand Up @@ -619,6 +621,7 @@ def check(_):
sourcestamps=[
dict(
branch='trunk',
codebase='',
patch_author='who',
patch_body='this is my diff, -- ++, etc.',
patch_comment='comment',
Expand Down Expand Up @@ -705,6 +708,7 @@ def check(_):
sourcestamps=[
dict(
branch='default',
codebase='',
patch_author='',
patch_body='-- ++',
patch_comment='',
Expand Down Expand Up @@ -733,6 +737,7 @@ def check(_):
sourcestamps=[
dict(
branch='default',
codebase='',
patch_author='who',
patch_body='-- ++',
patch_comment='comment',
Expand Down

0 comments on commit 25ae2d7

Please sign in to comment.