testing sftp under windows
Alexey Shamrin
shamrin at gmail.com
Fri Nov 11 07:26:07 GMT 2005
Hello!
Running "bzr selftest testsftp" gives 10 failed test out of 10
possible (see the end the message for a log). They all fail when
calling self._socket.listen(1).
I don't know how to work with sockets, but here is the observation:
This works fine (under Linux):
$ python -c "import socket; socket.socket().listen(1)"
But this fails (under Windows XP):
C:\work\prog\bzr\bzr.dev>python -c "import socket; socket.socket().listen(1)"
Traceback (most recent call last):
File "<string>", line 1, in ?
File "<string>", line 1, in listen
socket.error: (10022, 'Invalid argument')
Does anyone know how to fix this?
Log
====
C:\work\prog\bzr\bzr.dev>python bzr selftest testsftp
running tests...
bzr binary C:\work\prog\bzr\bzr.dev\bzr
EEEEEEEEEE
======================================================================
ERROR: test_append (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrjzvxbq.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrf4m9m0.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrmc9mjx.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwmxzr7.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzryjqj6o.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_append_file (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrf4m9m0.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrmc9mjx.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwmxzr7.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzryjqj6o.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_copy_to (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrmc9mjx.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwmxzr7.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzryjqj6o.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_delete (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwmxzr7.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzryjqj6o.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_get (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzryjqj6o.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_has (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrbdctbr.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_mkdir (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr3dit_b.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_move (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrwqkt5w.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_put (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzrakft3k.log
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
======================================================================
ERROR: test_put_file (bzrlib.selftest.testsftp.SFTPTransportTest)
log from this test:
DEBUG opened log file c:\docume~1\alexey\locals~1\temp\testbzr5aw1jh.log
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 94, in setUp
self._listener = SingleListener(self._run_server)
File "C:\work\prog\bzr\bzr.dev\bzrlib\selftest\testsftp.py", line 57, in __ini
t__
self._socket.listen(1)
File "<string>", line 1, in listen
error: (10022, 'Invalid argument')
----------------------------------------------------------------------
Ran 10 tests in 0.110s
FAILED (errors=10)
Failed tests working directories are in 'C:\work\prog\bzr\bzr.dev\test0003.tmp'
--
Alexey
More information about the bazaar
mailing list