aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/oe-selftest
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2014-02-07 12:08:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-02-09 09:40:01 +0000
commitac656fb21beb7de9e11f5268f67be3434a3aec74 (patch)
tree204bb8f4ffb639298b326b1bfdfba6e0eb9db121 /scripts/oe-selftest
parentccb256ee31f723d05be4dfbf55af58e3f3be0dee (diff)
downloadopenembedded-core-contrib-ac656fb21beb7de9e11f5268f67be3434a3aec74.tar.gz
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. (From OE-Core rev: c38f943c7fbb1fc077c875099dce8f73f41043b9) Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/oe-selftest')
-rwxr-xr-xscripts/oe-selftest6
1 files changed, 4 insertions, 2 deletions
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: