From b34a082fdfe3faad3066b92536ce55c4d1464f3c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Thu, 4 Jan 2018 14:01:15 +0100
Subject: [PATCH] Fixed ubicast packages test (refs #23881).

---
 tests/test_ubicast_packages_access.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_ubicast_packages_access.py b/tests/test_ubicast_packages_access.py
index e29c4e1f..e5caea74 100755
--- a/tests/test_ubicast_packages_access.py
+++ b/tests/test_ubicast_packages_access.py
@@ -42,6 +42,7 @@ req = requests.get(url)
 if not req.ok:
     print('Request to %s failed (%s):' % (url, req.status_code))
     print(req.text)
+    sys.exit(1)
 else:
     print('Request to %s: OK.' % url)
 
@@ -51,5 +52,6 @@ apt_url = apt_url.replace(api_key, api_key[:8] + '[...]')
 if not req.ok:
     print('Request to %s failed (%s):' % (apt_url, req.status_code))
     print(req.text)
+    sys.exit(1)
 else:
     print('Request to %s: OK.' % apt_url)
-- 
GitLab