[Buildbot-devel] Re: BuildBot test fails on Win32 platform.

Nick Trout nick at rockstarvancouver.com
Tue Apr 19 00:25:33 UTC 2005


The following is helpful. I too am trying to get BB running on win32 and
am having problems. I logged one bug in SF to do with path separators
not being OS independent in the tests. There may well be other instances
of this.

Currently having problems with the follow code killing the tests
(BUILDBOT_TEST_VC is not set). The unit test system isn't picking up the
exeception. I don't really know much about trial so not sure if this is
correct:

class SetupMixin(SignalMixin):
    master = None
    slave = None
    httpServer = None
    httpPort = None

    def setUpClass(self):
        if VCS is None:
            global VCS
            VCS = VCSupport()
        SignalMixin.setUpClass(self)
        if not VCS.RepositoryPath:
            raise unittest.SkipTest("provide "
 
"BUILDBOT_TEST_VC=path/to/repositories "
                                    "to run this")


Nick



> Hmm, Looking into the remaining 5 failures, there are all similar to
that
 > one:
 > 
 >    File "C:\Python23\lib\site-packages\twisted\internet\default.py",
line
 > 179, in spawnProcess
 >      raise NotImplementedError, "process only available in this " \
 >  exceptions.NotImplementedError: process only available in this
reactor on
 > POSIX, use win32eventreactor on Windows
 > 
 >     I"m a complete newbie as far as twisted is concerned. What need
to be
 > changed in the tests or buildbot so that the win32eventreactor is
used on
 > Windows ?
 
 When you run trial, give it a "--reactor=win32" argument:
 
  PYTHONPATH=. trial --reactor=win32 -v buildbot.test
 
 That will make it use the win32eventreactor instead of the default
 select()-based one. (as a side note, Twisted should probably use a
different
 default when run on win32, but that"s a bug for the Twisted code rather
than
 buildbot).
 
 hope that helps,
  -Brian






More information about the devel mailing list