From 899de3069a2030f6b8c61b02ae4940029ae84adc Mon Sep 17 00:00:00 2001 From: warner Date: Mon, 11 Dec 2006 11:08:31 +0100 Subject: [PATCH] test_config: inhibit the usual read-config-on-startup behavior to avoid a spurious flunked test --- ChangeLog | 4 ++++ buildbot/test/test_config.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index aff414e..ed11203 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2006-12-10 Brian Warner + * buildbot/test/test_config.py (StartService.testStartService): + inhibit the usual read-config-on-startup behavior, since otherwise + the log.err that gets recorded causes the test to fail + * buildbot/status/builder.py (LogFile.finish): forget about all subscribers once the log has finished, since after that point we're never going to use them again. This might help free up some diff --git a/buildbot/test/test_config.py b/buildbot/test/test_config.py index b8aa6f1..707a2b8 100644 --- a/buildbot/test/test_config.py +++ b/buildbot/test/test_config.py @@ -1051,6 +1051,8 @@ class StartService(unittest.TestCase): def testStartService(self): os.mkdir("test_ss") self.master = m = BuildMaster("test_ss") + # inhibit the usual read-config-on-startup behavior + m.readConfig = True m.startService() d = m.loadConfig(startableEmptyCfg % 0) d.addCallback(self._testStartService_0) -- 2.11.4.GIT