Add next.json to DefCore guideline list

next.json is the proposed guideline for DefCore, and is published
by the working group for comment and feedback. As part of the
feedback process, users and DefCore working group members need
to evaluate the proposed standard against existing test results.

This change modifies the guideline pattern matcher to pull in
the next file as well as the approved guidelines.

Change-Id: I8c8391b9ab14d1c6d7286710b5e64b72be3e92a8
This commit is contained in:
Chris Hoge 2016-07-01 11:43:00 -07:00
parent ae1acf2b33
commit a74df017ae

View File

@ -65,7 +65,7 @@ class Guidelines:
(response.status_code,
getattr(response, 'from_cache', False)))
if response.status_code == 200:
regex = re.compile('^[0-9]{4}\.[0-9]{2}\.json$')
regex = re.compile('^([0-9]{4}\.[0-9]{2}|next)\.json$')
capability_files = []
for rfile in response.json():
if rfile["type"] == "file" and regex.search(rfile["name"]):