]> git.ozlabs.org Git - ccan/commit
ccanlint: Alter meaning of --summary option
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 2 Nov 2016 22:34:23 +0000 (09:34 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 7 Nov 2016 07:54:08 +0000 (18:54 +1100)
commit655620a250b1dcca27c5342d31db637ea35e837c
tree105dcfd07cb3f53fcfda33b7fc2533c8196eb9d0
parent6b74669644e8476dee9845b6ff8096cbfb557e27
ccanlint: Alter meaning of --summary option

--summary (used by make check) causes ccanlint to only ever print a
one-line summary of the results.  When one of the tests fails, this isn't
very useful, because it doesn't say why it failed, or even which test
failed.  This is particularly frustrating for failures in Travis CI builds
where it's not always straightforward to reproduce a similar enough build
environment to check the failure manually for a particular module.

--summary does have one purpose which is vital for make check, though: it
suppresses any attempt to interactively correct / improve the module
printing only results.

This changes --summary to only have the second effect, not the first.  This
won't change the output in the case of passing modules, but will give more
useful information in the case of failing modules.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
tools/ccanlint/ccanlint.c