[tracker/sam/test-fixes: 2/2] functional-tests: Don't ignore failures in ipc/ tests



commit aa0a59df19495e457f543e1ad3f78cb6f8538afb
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Sep 14 13:51:17 2019 +0200

    functional-tests: Don't ignore failures in ipc/ tests
    
    This fixes a regression introduced in 14e557aad2675c8a07f680a2.
    
    Tracker Sandbox now passes on the returncode from the subprocess
    so that failing tests are noticed by `meson test` as expected.

 utils/sandbox/tracker-sandbox.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/utils/sandbox/tracker-sandbox.py b/utils/sandbox/tracker-sandbox.py
index db24679f3..2fcceac72 100755
--- a/utils/sandbox/tracker-sandbox.py
+++ b/utils/sandbox/tracker-sandbox.py
@@ -321,8 +321,12 @@ if __name__ == "__main__":
     try:
         if args.command:
             command = [shell, '-c', ' '.join(shlex.quote(c) for c in args.command)]
+
             log.debug("Running: %s", command)
-            subprocess.run(command)
+            result = subprocess.run(command)
+
+            log.debug("Process finished with returncode %i", result.returncode)
+            sys.exit(result.returncode)
         else:
             print('Starting shell... (type "exit" to finish)')
             print()


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