From a16b6f4c3e2d0bde93f7deeabcecc55281dead34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu> Date: Mon, 23 Oct 2017 09:16:13 +0200 Subject: [PATCH] Sort vhost names in Nginx vhosts test. --- tests/test_nginx_vhosts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py index 69be6eb4..cff58d5c 100755 --- a/tests/test_nginx_vhosts.py +++ b/tests/test_nginx_vhosts.py @@ -55,7 +55,9 @@ resolution_ignored = conf.get('TESTER_VHOST_RESOLUTION_IGNORED', '').split(',') found = False errors = 0 warnings = 0 -for name in os.listdir(nginx_dir): +names = os.listdir(nginx_dir) +names.sort() +for name in names: path = os.path.join(nginx_dir, name) with open(path, 'r') as fo: vhost = fo.read() -- GitLab