Merge lp:~lifeless/bzr/subunit into lp:bzr

Proposed by Robert Collins
Status: Merged
Approved by: Robert Collins
Approved revision: no longer in the source branch.
Merged at revision: not available
Proposed branch: lp:~lifeless/bzr/subunit
Merge into: lp:bzr
Diff against target: 28 lines (+7/-1)
2 files modified
Makefile (+4/-1)
NEWS (+3/-0)
To merge this branch: bzr merge lp:~lifeless/bzr/subunit
Reviewer Review Type Date Requested Status
Andrew Bennetts Approve
Review via email: mp+19770@code.launchpad.net

Commit message

Use subunit when running tests in PQM.

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

This will turn on subunit in PQM again, for your progress bar and debugging failures edification. I have checked and it exits with non-zero on failure.

Revision history for this message
Andrew Bennetts (spiv) wrote :

Seems ok, given that you've tested it exits properly :)

review: Approve
Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andrew Bennetts wrote:
> Review: Approve
> Seems ok, given that you've tested it exits properly :)

I believe this is currently blocked from landing:
# Generate a stream for PQM to watch.
python2.4 -Werror -O ./bzr selftest --subunit | tee selftest.log
bzr: ERROR: subunit not available. subunit needs to be installed to use
- --subunit.
# Check that there were no errors reported.
subunit-stats < selftest.log
/bin/sh: subunit-stats: not found
make: *** [check-nodocs] Error 127

That is what I saw at the very beginning of a new run, I assume that is
the tail of the previous run. Hey, at least it blocked when it couldn't
succeed. :)

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuC2zMACgkQJdeBCYSNAANgSACeMFoW8B+Uagai3+ZoS15R0kFH
Dl4AoJTPPLlQIAXN4T5LhuOB/DywgsSO
=KBG0
-----END PGP SIGNATURE-----

Revision history for this message
Robert Collins (lifeless) wrote :

On Mon, 2010-02-22 at 19:30 +0000, John A Meinel wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Andrew Bennetts wrote:
> > Review: Approve
> > Seems ok, given that you've tested it exits properly :)
>
> I believe this is currently blocked from landing:
> # Generate a stream for PQM to watch.
> python2.4 -Werror -O ./bzr selftest --subunit | tee selftest.log
> bzr: ERROR: subunit not available. subunit needs to be installed to use
> - --subunit.
> # Check that there were no errors reported.
> subunit-stats < selftest.log
> /bin/sh: subunit-stats: not found
> make: *** [check-nodocs] Error 127
>
> That is what I saw at the very beginning of a new run, I assume that is
> the tail of the previous run. Hey, at least it blocked when it couldn't
> succeed. :)

Yep, thats the size of it. Following up wit losas.

-Rob

Revision history for this message
Martin Pool (mbp) wrote :

back to wip pending build environment dependencies being sorted out

Revision history for this message
Martin Pool (mbp) wrote :

that's rt 37636

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Makefile'
2--- Makefile 2010-02-18 02:11:03 +0000
3+++ Makefile 2010-02-20 09:39:14 +0000
4@@ -39,7 +39,10 @@
5 check: docs check-nodocs
6
7 check-nodocs: extensions
8- $(PYTHON) -Werror -O ./bzr selftest -1 $(tests)
9+ # Generate a stream for PQM to watch.
10+ $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
11+ # Check that there were no errors reported.
12+ subunit-stats < selftest.log
13
14 # Run Python style checker (apt-get install pyflakes)
15 #
16
17=== modified file 'NEWS'
18--- NEWS 2010-02-18 04:59:30 +0000
19+++ NEWS 2010-02-20 09:39:14 +0000
20@@ -105,6 +105,9 @@
21 dependency regressions.
22 (Martin Pool)
23
24+* PQM will now run with subunit output. To analyze a PQM error use
25+ tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
26+
27 * Stop sending apport crash files to ``.cache`` in the directory from
28 which ``bzr selftest`` was run. (Martin Pool, #422350)
29