patman: make run results better visible
authorVadim Bendebury <vbendeb@chromium.org>
Thu, 4 Sep 2014 17:45:13 +0000 (10:45 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Sep 2014 22:38:31 +0000 (16:38 -0600)
commit1f7278851ea359063dabc235ff690a5010467956
treeb3b2eeb881e46a373c85549d2472a182c103b172
parent950a23133d8235778ea29f5d9587edec7d9bbc0a
patman: make run results better visible

For an occasional user of patman some failures are not obvious: for
instance when checkpatch reports warnings, the dry run still reports
that the email would be sent. If it is not dry run, the warnings are
shown on the screen, but it is not clear that the email was not sent.

Add some code to report failure to send email explicitly.

Tested by running the script on a patch with style violations,
observed error messages in the script output.

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Acked-by: Simon Glass <sjg@chromium.org>
tools/patman/patman.py