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: 2015-4~3768 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=c38f943c7fbb1fc077c875099dce8f73f41043b9;p=openembedded-core.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 29fe0100de..8c4ea92610 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: