Ticket #647: 647.patch

File 647.patch, 640 bytes (added by dwlocks, 2 years ago)

checks if twistd.log is in /

  • buildbot/scripts/runner.py

    diff --git a/buildbot/scripts/runner.py b/buildbot/scripts/runner.py
    index 1b66681..d8259c4 100644
    a b configfile = r'%(config)s' 
    361361rotateLength = %(log-size)s 
    362362maxRotatedFiles = %(log-count)s 
    363363 
     364# Sometimes the working directory is not writeable, so we check, then 
     365# explicitly use basedir if there are problems 
     366import os 
     367wd=os.getcwd() 
     368if not os.access(wd, os.W_OK): 
     369  print "%s not writeable.  Changing to %s." % (wd, basedir) 
     370  os.chdir(basedir) 
    364371application = service.Application('buildmaster') 
    365372try: 
    366373  from twisted.python.logfile import LogFile