run_bzr gives a poor message when a blackbox test fails
Bug #409688 reported by
Martin Pool
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
Example:
-------
Traceback (most recent call last):
File "/home/
out, err = self.run_bzr('merge -d target directive')
AssertionError: Unexpected return code
not equal:
a = 0
b = 1
This is true but not very helpful. It would be nice if the test failure error included the error message from the underlying bzr command - there typically is one. It's not very urgent because the error typically is visible (along with a lot of other stuff) in the test log.
tags: | added: check-for-breezy |
To post a comment you must log in.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Pool wrote: ------- ------- ------- ------- ------- ------- ------- ------- ------- mbp/bzr/ 409684- cherrypick/ bzrlib/ tests/blackbox/ test_merge. py", line 387, in test_directive_ cherrypick
> Public bug reported:
>
> Example:
>
> -------
> Traceback (most recent call last):
> File "/home/
> out, err = self.run_bzr('merge -d target directive')
> AssertionError: Unexpected return code
> not equal:
> a = 0
> b = 1
>
> This is true but not very helpful. It would be nice if the test failure
> error included the error message from the underlying bzr command - there
> typically is one. It's not very urgent because the error typically is
> visible (along with a lot of other stuff) in the test log.
>
> ** Affects: bzr
> Importance: Low
> Status: Confirmed
>
So yeah, it *is* in the log, but it is hard to find. The log also
usually has the traceback, which is often just as important. I've often
found it a bit harder to debug than normal tests, though, because the
information I'm looking for isn't where I expect to find it.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkp 64pMACgkQJdeBCY SNAAOZaQCeP4y46 ctNm3PL7SsesHqI M1cq dx1RTxiIvn7OvNe P/
gcAAnAws7iOvD9b
=YEWw
-----END PGP SIGNATURE-----