dtoc: Return a non-zero exit code when tests fail
authorSimon Glass <sjg@chromium.org>
Sat, 20 Jul 2019 18:23:23 +0000 (12:23 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 29 Jul 2019 15:38:05 +0000 (09:38 -0600)
commit1000096b06ea53487b3457eb1d0d1704276c1c62
treec6e92c7f6197867f8dd40ca8c9769a4869931bf1
parent75551c8bfc9545e31ec2ce238cac3857904007b8
dtoc: Return a non-zero exit code when tests fail

At present 'dtoc -t' return a success code even if some of the tests fail.
Fix this by checking the test result and setting the exit code. This
allows 'make qcheck' to function as expected.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtoc.py