diff options
author | Stefan Stanacar <stefanx.stanacar@intel.com> | 2014-02-07 12:08:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-02-09 09:40:01 +0000 |
commit | ac656fb21beb7de9e11f5268f67be3434a3aec74 (patch) | |
tree | 204bb8f4ffb639298b326b1bfdfba6e0eb9db121 /scripts | |
parent | ccb256ee31f723d05be4dfbf55af58e3f3be0dee (diff) | |
download | poky-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')
-rwxr-xr-x | scripts/oe-selftest | 6 |
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(): | |||
144 | add_include() | 144 | add_include() |
145 | result = runner.run(suite) | 145 | result = runner.run(suite) |
146 | log.info("Finished") | 146 | log.info("Finished") |
147 | 147 | if result.wasSuccessful(): | |
148 | return 0 | 148 | return 0 |
149 | else: | ||
150 | return 1 | ||
149 | 151 | ||
150 | if __name__ == "__main__": | 152 | if __name__ == "__main__": |
151 | try: | 153 | try: |