Skip to content

Commit

Permalink
test that clobber worked the first time, extra debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Feb 5, 2010
1 parent 7761c32 commit 61049c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buildbot/test/vc/test_vc.py
Expand Up @@ -465,6 +465,7 @@ def doBuild(self, shouldSucceed=True, ss=None):
c.getBuilder("vç").requestBuild(req)
d.addCallback(self._doBuild_1, shouldSucceed)
return d
shouldPrintTheseLogs = False ## TEMPORARY
def _doBuild_1(self, bs, shouldSucceed):
r = bs.getResults()
if r != SUCCESS and shouldSucceed:
Expand Down Expand Up @@ -622,9 +623,14 @@ def _do_vctest_update_1(self, bs):
return d
def _do_vctest_update_2(self, bs):
log.msg("_do_vctest_update_2")
# add some debugging information if this is going to fail; it usually
# fails because the VC clobbered when it shoulda updated, so this might
# help
if not os.path.exists(os.path.join(self.workdir, "newfile")):
self.printLogs(bs)
self.shouldExist(self.workdir, "newfile")
self.shouldExist(self.workdir, "main.c")
self.shouldExist(self.workdir, "version.c")
self.touch(self.workdir, "newfile")
# now make a change to the repository and make sure we pick it up
d = self.helper.vc_revise()
d.addCallback(lambda res: self.doBuild())
Expand Down

0 comments on commit 61049c1

Please sign in to comment.