~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-12 23:56:34 UTC
  • mfrom: (2002.1.1 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060912235634-1c39364c1566488a
(jam) add more verbose logging when run_bzr_subprocess fails

Show diffs side-by-side

added added

removed removed

Lines of Context:
923
923
        retcode = process.wait()
924
924
        supplied_retcode = kwargs.get('retcode', 0)
925
925
        if supplied_retcode is not None:
926
 
            assert supplied_retcode == retcode
 
926
            if supplied_retcode != retcode:
 
927
                mutter('Output of bzr %s:\n%s', args, out)
 
928
                mutter('Error for bzr %s:\n%s', args, err)
 
929
                self.fail('Command bzr %s failed with retcode %s != %s'
 
930
                          % (args, supplied_retcode, retcode))
927
931
        return [out, err]
928
932
 
929
933
    def check_inventory_shape(self, inv, shape):