From d91acd5f805578880305401ad45cb222f92cd127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Thu, 23 Feb 2017 17:52:22 +0100 Subject: [PATCH] return proper return code for non testable items --- tests/test_apt_proxy.py | 2 +- tests/test_ssl.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_apt_proxy.py b/tests/test_apt_proxy.py index 48124549..5bb7e42f 100755 --- a/tests/test_apt_proxy.py +++ b/tests/test_apt_proxy.py @@ -16,7 +16,7 @@ DEF = '\033[0m' if not os.path.exists('/etc/nginx/sites-enabled/skyreach.conf'): print('Server not running CampusManager, skipping test') - sys.exit(0) + sys.exit(2) os.chdir(os.path.dirname(__file__)) if not os.path.isfile('../utils.py'): diff --git a/tests/test_ssl.py b/tests/test_ssl.py index 17c03bdd..9e66764d 100755 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -16,7 +16,7 @@ DEF = '\033[0m' if not os.path.isdir('/etc/nginx'): print('Nginx not found, skipping test') - sys.exit(0) + sys.exit(2) os.chdir(os.path.dirname(__file__)) if not os.path.isfile('../utils.py'): -- GitLab