scripts: coccicheck: Improve error feedback when coccicheck fails
authorSumera Priyadarsini <sylphrenadin@gmail.com>
Sun, 13 Sep 2020 12:05:48 +0000 (17:35 +0530)
committerJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 13 Sep 2020 20:13:01 +0000 (22:13 +0200)
commita19d1358345e040af9164ee7dd0f39ea0a99d565
tree32e86b80bb7fb1cb05d538953fed45b15e9a21b4
parent6519a5ab1a9ffe5cf8056f688a69960bf126e723
scripts: coccicheck: Improve error feedback when coccicheck fails

Currently, coccicheck fails with only the message "coccicheck failed"
and the error code for the failure. To obtain the error logs,
one needs to specify a debug file using the DEBUG_FILE option.

Modify coccicheck to display error logs when it crashes unless
DEBUG_FILE is set, in which case, the error logs are stored in
the specified debug file.

Signed-off-by: Sumera Priyadarsini <sylphrenadin@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
scripts/coccicheck