~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Vincent Ladeuil
  • Date: 2010-08-30 10:14:21 UTC
  • mto: (5397.1.4 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 5398.
  • Revision ID: v.ladeuil+lp@free.fr-20100830101421-0k1uddicm7j5cgox
Catch errors in ``make check-no-docs`` to avoid merging invalid submissions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
check-nodocs: extensions
42
42
        # Generate a stream for PQM to watch.
 
43
        -$(RM) selftest.log
43
44
        $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
 
45
        # An empty log file should catch errors in the $(PYTHON)
 
46
        # command above (the '|' swallow any errors since 'make'
 
47
        # sees the 'tee' exit code for the whole line
 
48
        if [ ! -s selftest.log ] ; then exit 1 ; fi
44
49
        # Check that there were no errors reported.
45
50
        subunit-stats < selftest.log
46
51