Merge lp:~vila/bzr/626667-check-no-docs-swallow-errors into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | John A Meinel on 2010-08-30 |
| Approved revision: | 5397 |
| Merged at revision: | 5398 |
| Proposed branch: | lp:~vila/bzr/626667-check-no-docs-swallow-errors |
| Merge into: | lp:bzr |
| Diff against target: |
30 lines (+8/-0) 2 files modified
Makefile (+5/-0) NEWS (+3/-0) |
| To merge this branch: | bzr merge lp:~vila/bzr/626667-check-no-docs-swallow-errors |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| John A Meinel | 2010-08-30 | Approve on 2010-08-30 | |
|
Review via email:
|
|||
Commit Message
prevent 'make check' from succeeding when no tests are run
Description of the Change
This fix a amazingly long standing bug (recently found though #626667)
in our Makefile that could lead pqm to accept bogus submissions.
Namely, errors in 'make check' were swallowed.
I went for a pretty conservative fix that requires that selftest produces
a non-empty result.
| John A Meinel (jameinel) wrote : | # |
sent to pqm by email
| Martin Pool (mbp) wrote : | # |
It's a bit strange and dangerous that pqm needs us to save a file,
even though it also consumes the output itself, but this is probably
the sensible fix anyhow.
| John A Meinel (jameinel) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/30/2010 9:31 PM, Martin Pool wrote:
> It's a bit strange and dangerous that pqm needs us to save a file,
> even though it also consumes the output itself, but this is probably
> the sensible fix anyhow.
right, it sends the stdout back to the user (if the command fails) but
we need to run something to analyze that output to determine if there
were any failures.
Arguably we should just have a pipe filter that would do this, but that
would require writing it :).
I believe it might be a way to get better filtered output (stripping the
log from all the 'successful' tests.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkx
NeQAnA/
=79do
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 8/30/2010 5:18 AM, Vincent Ladeuil wrote:
> Vincent Ladeuil has proposed merging lp:~vila/bzr/626667-check-no-docs-swallow-errors into lp:bzr.
>
> Requested reviews:
> bzr-core (bzr-core)
>
>
> This fix a amazingly long standing bug (recently found though #626667)
> in our Makefile that could lead pqm to accept bogus submissions.
>
> Namely, errors in 'make check' were swallowed.
>
> I went for a pretty conservative fix that requires that selftest produces
> a non-empty result.
Can we just to 'set -e' and have any non-zero exit code stop the script?
Otherwise:
merge: approve
John
=:->
-----BEGIN PGP SIGNATURE----- enigmail. mozdev. org/
7vZgACgkQJdeBCY SNAAOq/ gCfXYf9QbceQEgR 3Csw84FXfy35 9I7fkaS9aNmr2Hy F3
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkx
wPYAoJVt0y76sh4
=61gT
-----END PGP SIGNATURE-----