TestVersion.test_main_version fails run from installed package
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Vincent Ladeuil | ||
2.2 |
Fix Released
|
High
|
Vincent Ladeuil | ||
2.3 |
Fix Released
|
High
|
Vincent Ladeuil |
Bug Description
Running 'bzr selftest' from the installed version of bzr 2.3b1 from the bzr-beta-ppa fails like so:
FAIL: bzrlib.
-------
_StringException: Text attachment: log
------------
238.743 run bzr: ['version']
238.743 bazaar version: 2.3b1
238.743 bzr arguments: ['version']
238.744 encoding stdout as sys.stdout encoding 'UTF-8'
238.746 Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
return self._operation
File "/usr/lib/
self.cleanups, self.func, *args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
show_
File "/usr/lib/
src_tree = _get_bzr_
File "/usr/lib/
control = bzrdir.
File "/usr/lib/
return BzrDir.
File "/usr/lib/
result = BzrDir.
File "/usr/lib/
hook(transport)
File "/usr/lib/
self.
File "/usr/lib/
% (url, self._bzr_
BzrError: Attempt to escape test isolation: 'file:/
238.746 output:
'Bazaar (bzr) 2.3b1\n'
238.746 errors:
"bzr: ERROR: Attempt to escape test isolation: 'file:/
------------
Text attachment: traceback
------------
Traceback (most recent call last):
File "/usr/lib/
return fn(*args)
File "/usr/lib/
testMethod()
File "/usr/lib/
output = self.run_
AssertionError: Unexpected return code
not equal:
a = 0
b = 3
------------
Related branches
- Martin Pool: Approve
-
Diff: 26 lines (+5/-1)2 files modifiedNEWS (+4/-0)
bzrlib/tests/__init__.py (+1/-1)
Changed in bzr: | |
importance: | Medium → High |
Changed in bzr: | |
assignee: | nobody → Vincent Ladeuil (vila) |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
milestone: | none → 2.1.4 |
status: | In Progress → Fix Released |
All these tests want to access the bzr source tree and fail otherwise.
The simplest fix is to skip these tests. That still leave *some* tests about 'bzr version' active (they use run_bzr_suprocess and as such are not affected by the problem).