[Buildbot-devel] upcoming release (win32 issues)
Nick Trout
nick at rockstarvancouver.com
Tue Apr 26 18:58:01 UTC 2005
> > FAILURE: testShell1 (buildbot.test.test_slavecommand.Shell)
>
> Hrm, ok, I need to look at these more closely. windows != unix in so
many
> ways!
Be good to get Windows working though. You'd probably get a lot of cross
platform projects using this system as it's easy to bridge the gap with
Python. We're also looking at SCons.
> > ERROR: testFindOptions (buildbot.test.test_runner.Options)
>
> I've disabled this on windows for now. The idea is that findOptions is
> supposed to look for a ~/.buildbot directory, and load options for the
> 'buildbot' tool from it. What should this mean under windows? What
does
> os.path.expanduser("~") return on a typical system? It sounds like
> os.environ['HOME'] is not usually set under windows.
ActivePython 2.3.2 Build 232 (ActiveState Corp.) based on
Python 2.3.2 (#49, Nov 13 2003, 10:34:54) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.path.expanduser("~")
'C:\\Documents and Settings\\ntrout'
>>> os.environ['HOME']
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "C:\Python23\lib\os.py", line 417, in __getitem__
return self.data[key.upper()]
KeyError: 'HOME'
Ah, looking at settings you need to use HOMEPATH to get equivalent of
expanduser("~").
For windows:
os.path.join(os.path.expanduser("~"), "buildbot.txt")
could function as a file to store local settings. Is this buildbot file,
one to be edited by the user? Generally you don't go into your local
settings folder (e.g. " C:\Documents and Settings\ntrout") and edit
files by hand like you might go into "~/." on unix. I personally would
prefer options to be store in a common place, not per user, e.g. perhaps
"\buildbot" or wherever buildbot is installed? E.g.
>>> import buildbot
>>> print buildbot
<module 'buildbot' from 'z:\tools\pythonlibs\buildbot\__init__.pyc'>
> > ERROR: test_webPathname_port (buildbot.test.test_web.WebTest)
>
> Sigh. Could you send me the _trial_temp/test.log for this one?
Relevant part of file is attached.
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: application/octet-stream
Size: 6377 bytes
Desc: test.log
URL: <http://buildbot.net/pipermail/devel/attachments/20050426/c0c165a9/attachment.obj>
More information about the devel
mailing list