From 1fdeb6e0efeed30f73dabf856b3c4605d659b98e Mon Sep 17 00:00:00 2001 From: warner Date: Mon, 22 May 2006 03:38:19 +0100 Subject: [PATCH] [project @ 2006-05-21 22:38:19 by warner] Revision: arch@buildbot.sf.net--2004/buildbot--dev--0--patch-553 Creator: Brian Warner use repr(filename) in test_web.py, to try and fix a windows failure (Waterfall.test_waterfall): tweak the way that filenames are put into the config file, to accomodate windows pathnames better. --- ChangeLog | 3 +++ buildbot/test/test_web.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b866b2..34a280e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,9 @@ a filename to be served as 'robots.txt' to discourage web spiders. Adapted from a patch by Tobi Vollebregt, thanks! * buildbot/test/test_web.py (Waterfall._test_waterfall_5): test it + (Waterfall.test_waterfall): tweak the way that filenames are put + into the config file, to accomodate windows pathnames better. + * docs/buildbot.texinfo (HTML Waterfall): document it * buildbot/process/process_twisted.py diff --git a/buildbot/test/test_web.py b/buildbot/test/test_web.py index 08d5c27..4be9c26 100644 --- a/buildbot/test/test_web.py +++ b/buildbot/test/test_web.py @@ -199,8 +199,8 @@ class Waterfall(BaseWeb, unittest.TestCase): config1 = base_config + """ from buildbot.changes import mail c['sources'] = [mail.SyncmailMaildirSource('my-maildir')] -c['status'] = [html.Waterfall(http_port=0, robots_txt='%s')] -""" % self.robots_txt +c['status'] = [html.Waterfall(http_port=0, robots_txt=%s)] +""" % repr(self.robots_txt) self.master = m = ConfiguredMaster("test_web4", config1) m.startService() -- 2.11.4.GIT