Skip to content
Snippets Groups Projects
Commit a16b6f4c authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Sort vhost names in Nginx vhosts test.

parent d7877599
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,9 @@ resolution_ignored = conf.get('TESTER_VHOST_RESOLUTION_IGNORED', '').split(',') ...@@ -55,7 +55,9 @@ resolution_ignored = conf.get('TESTER_VHOST_RESOLUTION_IGNORED', '').split(',')
found = False found = False
errors = 0 errors = 0
warnings = 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) path = os.path.join(nginx_dir, name)
with open(path, 'r') as fo: with open(path, 'r') as fo:
vhost = fo.read() vhost = fo.read()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment