Fix schema validation when providing target
Checks have been added for additional files besides the deliverables. A specific deliverable file can be specified with the command, but even when doing so, the updates would still check these other data files. This updates the handling to only check those files if one was not provided. Also small pep257 update. Change-Id: I80e96319d8f7377db67a336d5c1a5569d75007a1 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
parent
0e27710608
commit
be5376bad7
@ -12,10 +12,7 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
"""Verify that all deliverable files, series_status file,
|
||||
and release_liaisons file match the schema.
|
||||
|
||||
"""
|
||||
"""Verify that all data files match the schema."""
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
@ -104,15 +101,16 @@ def main():
|
||||
|
||||
errors = []
|
||||
|
||||
errors.extend(
|
||||
validate_one_file('data/series_status.yaml',
|
||||
_SERIES_SCHEMA, args.debug)
|
||||
)
|
||||
if not args.input:
|
||||
errors.extend(
|
||||
validate_one_file('data/series_status.yaml',
|
||||
_SERIES_SCHEMA, args.debug)
|
||||
)
|
||||
|
||||
errors.extend(
|
||||
validate_one_file('data/release_liaisons.yaml',
|
||||
_LIAISONS_SCHEMA, args.debug)
|
||||
)
|
||||
errors.extend(
|
||||
validate_one_file('data/release_liaisons.yaml',
|
||||
_LIAISONS_SCHEMA, args.debug)
|
||||
)
|
||||
|
||||
filenames = args.input or sorted(glob.glob('deliverables/*/*.yaml'))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user