Commit 55e9c205 authored by David Gibson's avatar David Gibson

ccanlint: Report failures with --summary

When run in --summary mode ccanlint doesn't actually report whether it
passed or failed in the message .  In particular this means that when make
check is run with -j, it can be hard to tell which modules failed.

This adds a more obvious failure message.
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 0d712535
...@@ -577,6 +577,8 @@ static bool run_tests(struct dgraph_node *all, ...@@ -577,6 +577,8 @@ static bool run_tests(struct dgraph_node *all,
if (deps_fail_ignore && non_ccan_deps && build_failed) { if (deps_fail_ignore && non_ccan_deps && build_failed) {
comment = " (missing non-ccan dependencies?)"; comment = " (missing non-ccan dependencies?)";
run.pass = true; run.pass = true;
} else if (!run.pass) {
comment = " FAIL!";
} }
printf("%sTotal score: %u/%u%s\n", printf("%sTotal score: %u/%u%s\n",
prefix, run.score, run.total, comment); prefix, run.score, run.total, comment);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment