[Buildbot-commits] buildbot/buildbot/test test_web.py,1.12,1.13

Brian Warner warner at users.sourceforge.net
Wed May 4 07:04:20 UTC 2005


Update of /cvsroot/buildbot/buildbot/buildbot/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24566/buildbot/test

Modified Files:
	test_web.py 
Log Message:
Revision: arch at buildbot.sf.net--2004/buildbot--dev--0--patch-133
Creator:  Brian Warner <warner at monolith.lothar.com>

fix phase=0 rendering, remove debug message

	* buildbot/status/html.py (WaterfallStatusResource.body): fix
	exception in phase=0 rendering
	* buildbot/test/test_web.py (WebTest.test_waterfall): test it

	* buildbot/changes/dnotify.py (DNotify.__init__): remove debug msg


Index: test_web.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/test/test_web.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- test_web.py	26 Apr 2005 20:25:30 -0000	1.12
+++ test_web.py	4 May 2005 07:04:17 -0000	1.13
@@ -13,6 +13,7 @@
 
 from buildbot import master, interfaces
 from buildbot.status import html
+from buildbot.changes.changes import Change
 
 class ConfiguredMaster(master.BuildMaster):
     """This BuildMaster variant has a static config file, provided as a
@@ -178,6 +179,8 @@
         m.startService()
         # hack to find out what randomly-assigned port it is listening on
         port = list(self.find_waterfall(m)[0])[0]._port.getHost().port
+        # insert an event
+        m.change_svc.addChange(Change("user", ["foo.c"], "comments"))
 
         d = client.getPage("http://localhost:%d/" % port)
         page = dr(d)
@@ -187,6 +190,12 @@
         TZ = time.tzname[time.daylight]
         self.failUnlessIn("time (%s)" % TZ, page)
 
+        # phase=0 is really for debugging the waterfall layout
+        d = client.getPage("http://localhost:%d/?phase=0" % port)
+        page = dr(d)
+        self.failUnless(page)
+        self.failUnlessIn("<html>", page)
+
         d = client.getPage("http://localhost:%d/favicon.ico" % port)
         icon = dr(d)
         expected = open(html.buildbot_icon,"rb").read()





More information about the Commits mailing list