selftest attempting to break test isolation

Bug #457955 reported by Ian Clatworthy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-xmloutput
Fix Released
Medium
Unassigned

Bug Description

rev 136 ....

ian@wallaby:~/Projects/scm-conversions/bigtest$ bzr selftest xmloutput -1
testing: /home/ian/Projects/bzr/bzr/trunk/bzr
   /home/ian/Projects/bzr/bzr/trunk/bzrlib
   bzr-2.1.0dev2 python-2.6.4rc1 Linux-2.6.31-14-generic-x86_64-with-Ubuntu-9.10-karmic

======================================================================
FAIL: test_version (bzrlib.plugins.xmloutput.tests.test_version_xml.TestVersionXML)

vvvv[log from bzrlib.plugins.xmloutput.tests.test_version_xml.TestVersionXML.test_version]
1.888 run bzr: ['xmlversion']
1.888 bzr arguments: ['xmlversion']
1.889 encoding stdout as sys.stdout encoding 'UTF-8'
1.911 Traceback (most recent call last):
  File "/home/ian/.bazaar/plugins/xmloutput/xml_errors.py", line 68, in xml_error_handling
    return func(*args, **kwargs)
  File "/home/ian/.bazaar/plugins/xmloutput/__init__.py", line 316, in run
    show_version_xml(to_file=to_file)
  File "/home/ian/.bazaar/plugins/xmloutput/versionxml.py", line 45, in show_version_xml
    _show_bazaar_version(to_file=to_file)
  File "/home/ian/.bazaar/plugins/xmloutput/versionxml.py", line 76, in _show_bazaar_version
    _show_source_tree(to_file)
  File "/home/ian/.bazaar/plugins/xmloutput/versionxml.py", line 97, in _show_source_tree
    src_tree = _get_bzr_source_tree()
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/version.py", line 99, in _get_bzr_source_tree
    control = bzrdir.BzrDir.open_containing(__file__)[0]
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/bzrdir.py", line 898, in open_containing
    return BzrDir.open_containing_from_transport(transport)
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/bzrdir.py", line 919, in open_containing_from_transport
    result = BzrDir.open_from_transport(a_transport)
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/bzrdir.py", line 854, in open_from_transport
    hook(transport)
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/tests/__init__.py", line 1009, in _preopen_isolate_transport
    self._preopen_isolate_url(url)
  File "/home/ian/Projects/bzr/bzr/trunk/bzrlib/tests/__init__.py", line 1024, in _preopen_isolate_url
    % (url, self._bzr_selftest_roots))
BzrError: Attempt to escape test isolation: 'file:///home/ian/Projects/bzr/bzr/trunk/bzrlib/version.pyc/' []

1.911 output:
'<?xml version="1.0" encoding="UTF-8"?><version><bazaar><version>2.1.0dev2</version>'
1.911 errors:
'<?xml version="1.0" encoding="UTF-8"?><error><class>BzrError</class><dict><key>_preformatted_string</key><value>Attempt to escape test isolation: \'file:///home/ian/Projects/bzr/bzr/trunk/bzrlib/version.pyc/\' []</value></dict><message>Attempt to escape test isolation: \'file:///home/ian/Projects/bzr/bzr/trunk/bzrlib/version.pyc/\' []</message></error>'

^^^^[log from bzrlib.plugins.xmloutput.tests.test_version_xml.TestVersionXML.test_version]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/ian/.bazaar/plugins/xmloutput/tests/test_version_xml.py", line 35, in test_version
    out = self.run_bzr("xmlversion")[0]
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

----------------------------------------------------------------------
Ran 1 test in 0.085s

FAILED (failures=1)

Related branches

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Ian,
Thanks for reporting this :)
hmm, looks like something changed in bzr selftest...
Do you know what xmloutput is doing wrong?

Thanks!

Changed in bzr-xmloutput:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Ian Clatworthy (ian-clatworthy) wrote : Re: [Bug 457955] Re: selftest attempting to break test isolation

Guillermo Gonzalez wrote:

> hmm, looks like something changed in bzr selftest...
> Do you know what xmloutput is doing wrong?

I don't sorry. I'd ping vila on IRC for ideas.

Ian C.

Changed in bzr-xmloutput:
status: Triaged → Fix Committed
milestone: none → 0.8.7
Changed in bzr-xmloutput:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.