[tracker] functional-tests: Return correct (non-zero) exit code if subprocess crashes



commit 3ec1c3236c58103d473d6073c68c0897f941c6b9
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Jul 2 17:41:03 2018 +0200

    functional-tests: Return correct (non-zero) exit code if subprocess crashes

 tests/functional-tests/common/utils/helpers.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index 95e48401b..63605e55c 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -74,7 +74,7 @@ class Helper:
         def new_hook(etype, evalue, etb):
             old_hook(etype, evalue, etb)
             GLib.MainLoop.quit(loop)
-            sys.exit()
+            sys.exit(1)
         sys.excepthook = new_hook
 
     def _start_process (self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]