aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-09-12 05:42:28 +0300
committerFrederick Muriuki Muriithi2022-09-12 05:42:28 +0300
commitd46e8d0a51794d7aa822dadfc30298684f4c6167 (patch)
tree8224581356297bbc1bc6836ff6822fd4dc29a1cf
parent76b1283928f33f7b83e2270fce48d80a0e52b85b (diff)
downloadgenenetwork2-d46e8d0a51794d7aa822dadfc30298684f4c6167.tar.gz
Exit with an error condition if tests fail.
-rw-r--r--test/requests/correlation_tests.py3
1 files changed, 2 insertions, 1 deletions
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")