sometimes selftest hang on win32
Alexander Belchenko
bialix at ukr.net
Wed Dec 20 17:22:25 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
bzr.dev revno.2204
selftest hangs on test_lockdir.TestLockDir.test_35_wait_lock_changing
stderr show me this traceback:
D:\Bazaar\sandbox\regression>python bzr --no-plugins selftest -v > test.log
Exception in thread Thread-97:
Traceback (most recent call last):
File "E:\Python24\lib\threading.py", line 442, in __bootstrap
self.run()
File "E:\Python24\lib\threading.py", line 422, in run
self.__target(*self.__args, **self.__kwargs)
File "D:\Bazaar\sandbox\regression\bzrlib\tests\test_lockdir.py", line 400, in wait_and_switch
lf1.unlock()
File "D:\Bazaar\sandbox\regression\bzrlib\lockdir.py", line 240, in unlock
self.transport.rename(self._held_dir, tmpname)
File "D:\Bazaar\sandbox\regression\bzrlib\transport\local.py", line 364, in rename
self._translate_error(e, path_from)
File "D:\Bazaar\sandbox\regression\bzrlib\transport\__init__.py", line 241, in _translate_error
raise errors.PermissionDenied(path, extra=e)
PermissionDenied: Permission denied:
u'D:/Bazaar/sandbox/regression/test0000.tmp/test_lockdir.TestLockDir.test_35_wait_lock_chan
ging/work/test_lock/held': [Errno 13] Permission denied
But running this test alone I don't have this traceback.
D:\Bazaar\sandbox\regression>python bzr --no-plugins selftest test_lockdir.TestLockDir.test_35_wait_lock_changing -v
bzr: D:/Bazaar/sandbox/regression/bzr
bzrlib: D:\Bazaar\sandbox\regression\bzrlib
running 1 tests...
test_lockdir.TestLockDir.test_35_wait_lock_changing OK
401ms
- ----------------------------------------------------------------------
Ran 1 test in 0.451s
OK
tests passed
Because there is used multiple threads I think problem
caused by some sort of racing conditions.
Note: too many similar errors I have with SFTP tests on win32.
Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFiXFRzYr338mxwCURAjK8AJ9ZOVOp9+ip9J7pl1efdlvKTLI2vACfR3Kc
eLn84X/OAKyvLkW0dT4NBYA=
=qxA5
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list