utils/test-pkg: ensure to exit with an error upon failure
authorHeiko Thiery <heiko.thiery@kontron.com>
Thu, 10 Oct 2019 10:24:26 +0000 (12:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 10 Oct 2019 20:54:12 +0000 (22:54 +0200)
commit5093435f664992449ffe2a02b701765499e85027
tree19bf7207861f664192d856a4e8a16946eba5cb07
parent828555061025919a1686a594cb4377621bfac12a
utils/test-pkg: ensure to exit with an error upon failure

This commit modifies the main() function so that it returns the sum of
build and legal errors, making sure the overall test-pkg script exists
with a non-zero error code upon failure.

Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com>
[Thomas: improved commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
utils/test-pkg