From ad2c0e805edb0c24c56d004a4c8a8344262068bd 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:43:29 +0100 Subject: [PATCH] do not test apt proxy if not running campusmanager --- tests/test_apt_proxy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_apt_proxy.py b/tests/test_apt_proxy.py index bfe51394..48124549 100755 --- a/tests/test_apt_proxy.py +++ b/tests/test_apt_proxy.py @@ -14,6 +14,10 @@ GREEN = '\033[92m' RED = '\033[91m' DEF = '\033[0m' +if not os.path.exists('/etc/nginx/sites-enabled/skyreach.conf'): + print('Server not running CampusManager, skipping test') + sys.exit(0) + os.chdir(os.path.dirname(__file__)) if not os.path.isfile('../utils.py'): print('conf.sh not found') -- GitLab