[tests]: Bind to relative socket filenames

personal/stbuehler/wip
Stefan Bühler 12 years ago
parent 9568d7a41a
commit 1577d28029
  1. 2
      tests/service.py

@ -172,7 +172,7 @@ class FastCGI(Service):
def Prepare(self):
sockdir = self.tests.PrepareDir(os.path.join("tmp", "sockets"))
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.bind(self.sockfile)
sock.bind(os.path.relpath(self.sockfile))
sock.listen(8)
self.fork(*self.binary, inp = sock)

Loading…
Cancel
Save