From d46e8d0a51794d7aa822dadfc30298684f4c6167 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 12 Sep 2022 05:42:28 +0300 Subject: Exit with an error condition if tests fail. --- test/requests/correlation_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/requests/correlation_tests.py b/test/requests/correlation_tests.py index 14f9c569..aa1b7b16 100644 --- a/test/requests/correlation_tests.py +++ b/test/requests/correlation_tests.py @@ -1,3 +1,4 @@ +import sys import requests from lxml.html import parse from link_checker import check_page @@ -92,5 +93,5 @@ def check_correlations(args_obj, parser): if failure: print("FAIL!") - return + sys.exit(1) print("OK") -- cgit v1.2.3