Skip to contentSkip to conversation

scripts/oe-selftest: return based on the test results

PATCH New Stefan Stanacar 1 participant 1 message Feb 7, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/oe-selftest | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
scripts/oe-selftest +4 -2
index 29fe010..8c4ea92 100755
@@ -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:
Signature · 1 line
1.8.5.3