summaryrefslogtreecommitdiff
path: root/scripts
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-08 21:01:27 +0000
commitc38f943c7fbb1fc077c875099dce8f73f41043b9 (patch)
treeba864f021aa55a3e8e5bbb2d0a1752d69a5dca71 /scripts
parentb01e4438a08a0b9c6950af666fa13eaf71b45fc9 (diff)
downloadopenembedded-core-c38f943c7fbb1fc077c875099dce8f73f41043b9.tar.gz
openembedded-core-c38f943c7fbb1fc077c875099dce8f73f41043b9.tar.bz2
openembedded-core-c38f943c7fbb1fc077c875099dce8f73f41043b9.zip
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 <stefanx.stanacar@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-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: