]> code.ossystems Code Review - openembedded-core.git/commitdiff
scripts/oe-selftest: return based on the test results
authorStefan Stanacar <stefanx.stanacar@intel.com>
Fri, 7 Feb 2014 10:08:51 +0000 (12:08 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Feb 2014 21:01:27 +0000 (21:01 +0000)
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>
scripts/oe-selftest

index 29fe0100de2ca6c6338bab0659862242f8940547..8c4ea926104b62ea8eb37b390dc6ab5bf6900f6f 100755 (executable)
@@ -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: