[oe-commits] Stefan Stanacar : scripts/oe-selftest: return based on the test results
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 9 09:56:21 UTC 2014
Module: openembedded-core.git
Branch: master
Commit: c38f943c7fbb1fc077c875099dce8f73f41043b9
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=c38f943c7fbb1fc077c875099dce8f73f41043b9
Author: Stefan Stanacar <stefanx.stanacar at intel.com>
Date: Fri Feb 7 12:08:51 2014 +0200
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
scripts/oe-selftest | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/oe-selftest b/scripts/oe-selftest
index 29fe010..8c4ea92 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:
More information about the Openembedded-commits
mailing list