From: Stefan Stanacar Date: Fri, 7 Feb 2014 10:08:51 +0000 (+0200) Subject: scripts/oe-selftest: return based on the test results X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~34605 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c38f943c7fbb1fc077c875099dce8f73f41043b9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git scripts/oe-selftest: return based on the test results Regardless if the tests passed or not the script returned 0, which isn't what one would expect. Signed-off-by: Stefan Stanacar Signed-off-by: Richard Purdie --- diff --git a/scripts/oe-selftest b/scripts/oe-selftest index 29fe0100de2..8c4ea926104 100755 --- a/scripts/oe-selftest +++ b/scripts/oe-selftest @@ -144,8 +144,10 @@ def main(): add_include() result = runner.run(suite) log.info("Finished") - - return 0 + if result.wasSuccessful(): + return 0 + else: + return 1 if __name__ == "__main__": try: