[pyatspi2: 2/3] testrunner: fix returning test failures



commit 3d8796b74d4181e8ce244e0bfe508095f0c273c9
Author: Samuel Thibault <samuel thibault ens-lyon org>
Date:   Tue Aug 27 01:10:15 2019 +0200

    testrunner: fix returning test failures
    
    test.finish() does not return

 tests/pyatspi/testrunner.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/pyatspi/testrunner.in b/tests/pyatspi/testrunner.in
index 39cc7ff..1c6a4cf 100755
--- a/tests/pyatspi/testrunner.in
+++ b/tests/pyatspi/testrunner.in
@@ -86,9 +86,9 @@ def main(argv):
        def finished_handler():
                loop.quit()
                print "\n" + test_object.report() + "\n"
+               if test_object.failMsg:
+                       sys.exit (1)
                test.finish()
-                if test_object.failMsg:
-                        sys.exit (-1)
 
        test_object.events.finished += finished_handler
 


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