Rev 5133: Use subunit when running tests in PQM. in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Tue Apr 6 07:59:08 BST 2010


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 5133 [merge]
revision-id: pqm at pqm.ubuntu.com-20100406065903-y9dxgwmog1pmw7dz
parent: pqm at pqm.ubuntu.com-20100406014339-1hnb17m0cytvah0w
parent: robertc at robertcollins.net-20100220092741-2rc06901y9obzpfq
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Tue 2010-04-06 07:59:03 +0100
message:
  Use subunit when running tests in PQM.
modified:
  Makefile                       Makefile-20050805140406-d96e3498bb61c5bb
  NEWS                           NEWS-20050323055033-4e00b5db738777ff
=== modified file 'Makefile'
--- a/Makefile	2010-02-23 07:43:11 +0000
+++ b/Makefile	2010-04-06 06:59:03 +0000
@@ -39,7 +39,10 @@
 check: docs check-nodocs
 
 check-nodocs: extensions
-	$(PYTHON) -Werror -O ./bzr selftest -1 $(tests)
+	# Generate a stream for PQM to watch.
+	$(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
+	# Check that there were no errors reported.
+	subunit-stats < selftest.log
 
 # Run Python style checker (apt-get install pyflakes)
 #

=== modified file 'NEWS'
--- a/NEWS	2010-04-05 21:47:13 +0000
+++ b/NEWS	2010-04-06 06:59:03 +0000
@@ -312,6 +312,9 @@
   dependency regressions.
   (Martin Pool)
 
+* PQM will now run with subunit output. To analyze a PQM error use
+  tribunal, or cat log | subunit-filter | subunit2pyunit. (Robert Collins)
+
 * Stop sending apport crash files to ``.cache`` in the directory from
   which ``bzr selftest`` was run.  (Martin Pool, #422350)
 




More information about the bazaar-commits mailing list