From 1476018fd42b649cd615b46dfaf19c8c424223f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Thu, 18 Jul 2019 09:06:46 +0200 Subject: [PATCH] Changed log type for skipped tests --- tests/test_monitoring.py | 2 +- tests/test_nginx_vhosts.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_monitoring.py b/tests/test_monitoring.py index 7a11d365..ce77c1e9 100755 --- a/tests/test_monitoring.py +++ b/tests/test_monitoring.py @@ -27,7 +27,7 @@ def check_munin(): u.error('Munin directory "%s" not found.' % MUNIN_WWW_PATH) return 1 else: - u.error('Munin is not installed.') + u.info('Munin is not installed, test skipped.') return 2 # get cpu day graph of each host diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py index 55bfc531..f2bc18ef 100755 --- a/tests/test_nginx_vhosts.py +++ b/tests/test_nginx_vhosts.py @@ -185,7 +185,7 @@ def main(): # check that Nginx dir exists nginx_dir = "/etc/nginx/sites-enabled" if not Path(nginx_dir).exists(): - u.error("nginx dir does not exists ('%s')." % nginx_dir) + u.info("nginx dir does not exists ('%s'), test skipped." % nginx_dir) exit(2) # check that Wowza is installed -- GitLab