From 779d40389f01bc61915d939ef87d1a9042ff37f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Nizio?= Date: Sat, 4 Aug 2018 23:45:12 +0200 Subject: [PATCH] [tests] exit with failure also on assetion errors --- lib/tests/run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/run b/lib/tests/run index 85db74060..6c800c434 100755 --- a/lib/tests/run +++ b/lib/tests/run @@ -28,6 +28,6 @@ for mod in mods: rc = 0 result = unittest.TextTestRunner(verbosity = 1).run(unittest.TestSuite(tests)) -if result.errors: +if result.errors or result.failures: rc = 1 raise SystemExit(rc)