Failing tests in test_do when run from bzr selftest

Bug #614125 reported by Jelmer Vernooij
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bzr-builddeb
Fix Released
Medium
Jelmer Vernooij

Bug Description

  affects bzr-builddeb

Several tests are failing for me at the moment when run from "bzr
selftest". I'll see if I can look into fixing them this weekend, unless
somebody else already knows what's happening. Below is the subunit
output:

FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export
----------------------------------------------------------------------
Text attachment: log
------------
5.173 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/.bzr/.
5.175 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x5bf3a50> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/
5.182 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work/.bzr/checkout/dirstate'
5.182 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work'
5.192 run bzr: ['bd-do', 'echo a > debian/changelog']
5.193 bazaar version: 2.3.0dev1
5.193 bzr arguments: ['bd-do', 'echo a > debian/changelog']
5.198 encoding stdout as sys.stdout encoding 'UTF-8'
5.202 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_contents_taken_from_export/work'
5.206 Using True for merge, taken from default.conf
5.206 Using 'debian/changelog' to get package information
5.211 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.256 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.256 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
160, in test_contents_taken_from_export
    self.run_bzr(['bd-do', 'echo a > debian/changelog'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success
----------------------------------------------------------------------
Text attachment: log
------------
5.269 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success/work/.bzr/.
5.272 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x5eaefd0> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success/work/
5.279 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success/work/.bzr/checkout/dirstate'
5.279 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success/work'
5.288 run bzr: ['bd-do', 'touch debian/do']
5.288 bazaar version: 2.3.0dev1
5.288 bzr arguments: ['bd-do', 'touch debian/do']
5.289 encoding stdout as sys.stdout encoding 'UTF-8'
5.292 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_copy_on_success/work'
5.296 Using True for merge, taken from default.conf
5.297 Using 'debian/changelog' to get package information
5.297 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.348 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.348 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
136, in test_copy_on_success
    self.run_bzr(['bd-do', 'touch debian/do'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged
----------------------------------------------------------------------
Text attachment: log
------------
5.362 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged/work/.bzr/.
5.366 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x58fb510> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged/work/
5.375 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged/work/.bzr/checkout/dirstate'
5.375 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged/work'
5.387 run bzr: ['bd-do', 'echo a > debian/changelog']
5.387 bazaar version: 2.3.0dev1
5.387 bzr arguments: ['bd-do', 'echo a > debian/changelog']
5.389 encoding stdout as sys.stdout encoding 'UTF-8'
5.393 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_export_purged/work'
5.398 Using True for merge, taken from default.conf
5.399 Using 'debian/changelog' to get package information
5.399 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.455 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.455 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
167, in test_export_purged
    self.run_bzr(['bd-do', 'echo a > debian/changelog'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created
----------------------------------------------------------------------
Text attachment: log
------------
5.470 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created/work/.bzr/.
5.475 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x571f190> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created/work/
5.486 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created/work/.bzr/checkout/dirstate'
5.486 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created/work'
5.500 run bzr: ['bd-do', 'mkdir debian/dir']
5.500 bazaar version: 2.3.0dev1
5.500 bzr arguments: ['bd-do', 'mkdir debian/dir']
5.502 encoding stdout as sys.stdout encoding 'UTF-8'
5.508 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_new_directories_created/work'
5.513 Using True for merge, taken from default.conf
5.514 Using 'debian/changelog' to get package information
5.515 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.573 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.573 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
153, in test_new_directories_created
    self.run_bzr(['bd-do', 'mkdir debian/dir'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail
----------------------------------------------------------------------
Text attachment: log
------------
5.588 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail/work/.bzr/.
5.592 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x5a35290> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail/work/
5.603 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail/work/.bzr/checkout/dirstate'
5.604 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail/work'
5.618 run bzr: ['bd-do', 'touch debian/do && false']
5.618 bazaar version: 2.3.0dev1
5.618 bzr arguments: ['bd-do', 'touch debian/do && false']
5.619 encoding stdout as sys.stdout encoding 'UTF-8'
5.625 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_no_copy_on_fail/work'
5.630 Using True for merge, taken from default.conf
5.631 Using 'debian/changelog' to get package information
5.632 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.679 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.679 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
129, in test_no_copy_on_fail
    'failed.'], ['bd-do', 'touch debian/do && false'])
AssertionError: pattern "Not updating the working tree as the command
failed." not found in
"""\
Looking for a way to retrieve the upstream tarball
Using apt to look for the upstream tarball.
apt could not find the needed tarball.
No debian/rules file to try and use for a get-orig-source rule
No watch file to use to retrieve upstream tarball.
bzr: ERROR: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.
"""

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch
----------------------------------------------------------------------
Text attachment: log
------------
5.688 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch/work/.bzr/.
5.691 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x5ec9710> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch/work/
5.698 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch/work/.bzr/checkout/dirstate'
5.698 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch/work'
5.707 run bzr: ['bd-do', 'rm debian/changelog']
5.707 bazaar version: 2.3.0dev1
5.707 bzr arguments: ['bd-do', 'rm debian/changelog']
5.708 encoding stdout as sys.stdout encoding 'UTF-8'
5.712 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_removed_files_are_removed_in_branch/work'
5.715 Using True for merge, taken from default.conf
5.716 Using 'debian/changelog' to get package information
5.716 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.757 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.758 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
143, in test_removed_files_are_removed_in_branch
    self.run_bzr(['bd-do', 'rm debian/changelog'])
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

------------
======================================================================
FAIL:
bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell
----------------------------------------------------------------------
Text attachment: log
------------
5.767 creating repository in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell/work/.bzr/.
5.770 creating branch <bzrlib.branch.BzrBranchFormat7 object at
0x5ee5750> in
file:///tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell/work/
5.777 trying to create missing lock
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell/work/.bzr/checkout/dirstate'
5.777 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell/work'
5.786 run bzr: ['bd-do']
5.786 bazaar version: 2.3.0dev1
5.786 bzr arguments: ['bd-do']
5.787 encoding stdout as sys.stdout encoding 'UTF-8'
5.790 opening working tree
'/tmp/testbzr-zwkLT9.tmp/bzrlib.plugins.builddeb.tests.blackbox.test_do.TestDo.test_uses_shell/work'
5.794 Using True for merge, taken from default.conf
5.795 Using 'debian/changelog' to get package information
5.795 Using ../tarballs for orig-dir, taken
from /home/jelmer/.bazaar/builddeb.conf
    INFO Looking for a way to retrieve the upstream tarball
    INFO Using apt to look for the upstream tarball.
    INFO apt could not find the needed tarball.
    INFO No debian/rules file to try and use for a get-orig-source rule
    INFO No watch file to use to retrieve upstream tarball.
5.836 Traceback (most recent call last):
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1219, in
run_bzr_catch_user_errors
    return run_bzr(argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 1111, in
run_bzr
    ret = run(*run_argv)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 689, in
run_argv_aliases
    return self.run(**all_cmd_args)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/commands.py", line 704, in
run
    return self._operation.run_simple(*args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 135, in
run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/home/jelmer/src/bzr/bzr.dev/bzrlib/cleanup.py", line 165, in
_do_with_cleanups
    result = func(*args, **kwargs)
  File "/home/jelmer/.bazaar/plugins/builddeb/cmds.py", line 952, in run
    builder.export()
  File "/home/jelmer/.bazaar/plugins/builddeb/builder.py", line 75, in
export
    self.distiller.distill(self.target_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
83, in distill
    self._distill(target)
  File "/home/jelmer/.bazaar/plugins/builddeb/source_distiller.py", line
124, in _distill
    tarball = self.upstream_provider.provide(parent_dir)
  File "/home/jelmer/.bazaar/plugins/builddeb/upstream.py", line 416, in
provide
    raise MissingUpstreamTarball(self._tarball_names()[0])
MissingUpstreamTarball: Unable to find the needed upstream tarball:
test_0.1.orig.tar.gz.

5.836 errors:
'Looking for a way to retrieve the upstream tarball\nUsing apt to look
for the upstream tarball.\napt could not find the needed tarball.\nNo
debian/rules file to try and use for a get-orig-source rule\nNo watch
file to use to retrieve upstream tarball.\nbzr: ERROR: Unable to find
the needed upstream tarball: test_0.1.orig.tar.gz.\n'
------------
Text attachment: traceback
------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/testtools/runtest.py", line
128, in _run_user
    return fn(*args)
  File "/usr/lib/python2.6/dist-packages/testtools/testcase.py", line
368, in _run_test_method
    testMethod()
  File
"/home/jelmer/.bazaar/plugins/builddeb/tests/blackbox/test_do.py", line
177, in test_uses_shell
    self.run_bzr('bd-do')
AssertionError: Unexpected return code
not equal:
a = 0
b = 3

Related branches

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 614125] [NEW] Failing tests in test_do when run from bzr selftest

On Fri, 06 Aug 2010 00:24:52 -0000, Jelmer Vernooij <email address hidden> wrote:
> Public bug reported:
>
> affects bzr-builddeb
>
> Several tests are failing for me at the moment when run from "bzr
> selftest". I'll see if I can look into fixing them this weekend, unless
> somebody else already knows what's happening. Below is the subunit
> output:

I've not seen this one, so I don't know what it is. I don't use do
myself, so it's quite possibly regressed due to other changes.

Thanks,

James

Jelmer Vernooij (jelmer)
Changed in bzr-builddeb:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Jelmer Vernooij (jelmer)
James Westby (james-w)
Changed in bzr-builddeb:
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.