From c10403f0e72f54f8da8e763e7edc9ac097648049 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:50:05 +0100 Subject: [PATCH] do not run ssl test if no nginx is available --- tests/test_ssl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_ssl.py b/tests/test_ssl.py index a99608c9..17c03bdd 100755 --- a/tests/test_ssl.py +++ b/tests/test_ssl.py @@ -14,6 +14,10 @@ GREEN = '\033[92m' RED = '\033[91m' DEF = '\033[0m' +if not os.path.isdir('/etc/nginx'): + print('Nginx not found, skipping test') + sys.exit(0) + os.chdir(os.path.dirname(__file__)) if not os.path.isfile('../utils.py'): print('conf.sh not found') -- GitLab