usertest selftests fail

Bug #388252 reported by Martin Pool on 2009-06-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar Usertest
High
Unassigned

Bug Description

With the current usertest tip and bzr.dev tip on python2.6, several of the selftests fail as shown below.

The usertest revision is

[2] mbp@grace% bzr log -r -1 --show-ids
------------------------------------------------------------
revno: 174
revision-id: <email address hidden>
parent: <email address hidden>
committer: Ian Clatworthy <email address hidden>
branch nick: usertest
timestamp: Thu 2009-04-02 23:52:55 +1000
message:
  remove AddTask hack from log suite

[test 0/35] Starting

[3/35 in 0s] bzrlib.plugins.usertest.tests.test_measure.TestMeasureRegistry.test_get_measure_by_name

[7/35 in 1s] bzrlib.plugins.usertest.tests.test_measure.TestTimeMeasure.test_to_string

[15/35 in 1s] bzrlib.plugins.usertest.tests.test_script.TestScriptTask.test_exit_codes

[18/35 in 1s] bzrlib.plugins.usertest.tests.test_script.TestScriptTask.test_run_when_no_script

[24/35 in 1s, 3 err] bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_

testing: /home/mbp/bzr/trunk/bzr
   /home/mbp/bzr/trunk/bzrlib (1.17dev python2.6.2)

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there
    local variable 'root_dir' referenced before assignment

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there
    [Errno 2] No such file or directory: 'root93'

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_there
    local variable 'root_dir' referenced before assignment

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there
    local variable 'root_dir' referenced before assignment

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there
    [Errno 2] No such file or directory: 'root93'

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_there
    local variable 'root_dir' referenced before assignment

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations
    local variable 'root_dir' referenced before assignment

ERROR: bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations
    [Errno 2] No such file or directory: 'root14'

======================================================================
ERROR: test_dir_not_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there]
5.875 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/.bazaar/plugins/usertest/tests/test_archiveutil.py", line 121, in test_dir_not_there
    work_roots = archiveutil.unpack_archive(self.tarname)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 46, in unpack_archive
    return _unpack_tar(archive, ".tar.gz", "gz", roots, verbose, stats)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 84, in _unpack_tar
    root_dir == ''
UnboundLocalError: local variable 'root_dir' referenced before assignment

======================================================================
ERROR: test_dir_not_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there]
5.875 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_not_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/shutil.py", line 208, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.6/shutil.py", line 206, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: 'root93'

======================================================================
ERROR: test_dir_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_there]
5.885 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithNoSharedRoot.test_dir_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/.bazaar/plugins/usertest/tests/test_archiveutil.py", line 114, in test_dir_there
    work_roots = archiveutil.unpack_archive(self.tarname)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 46, in unpack_archive
    return _unpack_tar(archive, ".tar.gz", "gz", roots, verbose, stats)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 84, in _unpack_tar
    root_dir == ''
UnboundLocalError: local variable 'root_dir' referenced before assignment

======================================================================
ERROR: test_dir_not_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there]
5.895 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/.bazaar/plugins/usertest/tests/test_archiveutil.py", line 77, in test_dir_not_there
    work_roots = archiveutil.unpack_archive(self.tarname)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 46, in unpack_archive
    return _unpack_tar(archive, ".tar.gz", "gz", roots, verbose, stats)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 84, in _unpack_tar
    root_dir == ''
UnboundLocalError: local variable 'root_dir' referenced before assignment

======================================================================
ERROR: test_dir_not_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there]
5.895 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_not_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/shutil.py", line 208, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.6/shutil.py", line 206, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: 'root93'

======================================================================
ERROR: test_dir_there (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_there]
5.904 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_dir_there]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/.bazaar/plugins/usertest/tests/test_archiveutil.py", line 70, in test_dir_there
    work_roots = archiveutil.unpack_archive(self.tarname)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 46, in unpack_archive
    return _unpack_tar(archive, ".tar.gz", "gz", roots, verbose, stats)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 84, in _unpack_tar
    root_dir == ''
UnboundLocalError: local variable 'root_dir' referenced before assignment

======================================================================
ERROR: test_multiple_destinations (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations]
5.915 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mbp/.bazaar/plugins/usertest/tests/test_archiveutil.py", line 86, in test_multiple_destinations
    work_roots = archiveutil.unpack_archive(self.tarname, dests)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 46, in unpack_archive
    return _unpack_tar(archive, ".tar.gz", "gz", roots, verbose, stats)
  File "/home/mbp/.bazaar/plugins/usertest/archiveutil.py", line 84, in _unpack_tar
    root_dir == ''
UnboundLocalError: local variable 'root_dir' referenced before assignment

======================================================================
ERROR: test_multiple_destinations (bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot)

vvvv[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations]
5.915 opening working tree '/tmp/testbzr-5oMsIX.tmp'

^^^^[log from bzrlib.plugins.usertest.tests.test_archiveutil.TestArchiveWithOneRoot.test_multiple_destinations]
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/shutil.py", line 208, in rmtree
    onerror(os.listdir, path, sys.exc_info())
  File "/usr/lib/python2.6/shutil.py", line 206, in rmtree
    names = os.listdir(path)
OSError: [Errno 2] No such file or directory: 'root14'

----------------------------------------------------------------------
Ran 35 tests in 2.010s

FAILED (errors=8)
tests failed

Martin Pool (mbp) on 2009-06-17
Changed in bzr-usertest:
importance: Undecided → High
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers