Package: parallax / 1.0.1-3~bpo8+1

0001-Make-testsuite-exit-with-non-zero-on-failure.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From f3f7883dcb07e542e45cde44b8a808e5d67c5d31 Mon Sep 17 00:00:00 2001
From: Valentin Vidic <Valentin.Vidic@CARNet.hr>
Date: Sun, 13 Nov 2016 22:04:53 +0100
Subject: Make testsuite exit with non-zero on failure

Bug: https://github.com/krig/parallax/pull/2
---
 test/test_api.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/test_api.py b/test/test_api.py
index b291468..1f75b86 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -83,4 +83,6 @@ if __name__ == '__main__':
     suite = unittest.TestSuite()
     suite.addTest(unittest.makeSuite(CallTest, "test"))
     suite.addTest(unittest.makeSuite(CopySlurpTest, "test"))
-    unittest.TextTestRunner().run(suite)
+    result = unittest.TextTestRunner().run(suite)
+    if not result.wasSuccessful():
+        sys.exit(1)