开发者

Having trouble with py.test remote

I love py.test and am trying to get the remote test execution feature to work so I can run tests on a remote machine. There is very little doc and I am getting frustrated with it. Any help figuring out what I am doing wrong is appreciated. Here is my command line on the main server:

c:\Python26\Scripts\py.test --dist=each --tx socket=192.168.1.11:8888 tests\test_guest_install.py

If I read the doc right, this should push the script to the remote machine and run it. Here's the output on the other side:

C:\Users\D开发者_如何学Goave\Desktop>c:\Python26\python.exe socketserver.py
socket_readline_exec_server-1.2 Entering Accept loop ('0.0.0.0', 8888)
socket_readline_exec_server-1.2 got new connection from 192.168.1.5 30856
reading line
socket_readline_exec_server-1.2 compiled source, executing
============================= test session starts =============================
python: platform win32 -- Python 2.6.4 -- pytest-1.2.0
test object 1: C:\Users\Alan\Desktop\pyexecnetcache

==============================  in 0.14 seconds ===============================
socket_readline_exec_server-1.2 finished executing code
leaving socketserver execloop
Traceback (most recent call last):
  File "socketserver.py", line 90, in <module>
    startserver(serversock, loop=False)
  File "socketserver.py", line 81, in startserver
    serversock.shutdown(2)
  File "<string>", line 1, in shutdown
socket.error: [Errno 10057] A request to send or receive data was disallowed be
ause the socket is not connected and (when sending on a datagram socket using a
sendto call) no address was supplied


Could you try to rerun with latest versions of pytest and pytest-xdist?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜