aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMike Schuchardt <mikes@lunarg.com>2018-04-05 21:45:23 -0600
committerMike Schuchardt <mikes@lunarg.com>2018-04-19 08:43:52 -0600
commit7c356a0775b79d72f064c6709bdecdb62c4e7254 (patch)
tree0ca5b97a90306e31bcbb873e3e80ddca4ffa2a16 /scripts
parentef4a25fc8fe8a48ba685bc71ac1a251aad293bf2 (diff)
downloadusermoji-7c356a0775b79d72f064c6709bdecdb62c4e7254.tar.xz
scripts: Add spec.py check for ext changes
When the surrounding asciidoctor conditionals of a VUID change it may impact validation even if the VUID text does not change. Detect this in spec.py and flag for manual intervention. Change-Id: Idf802955ba9bbfe911edd4114fb28bdddf5fcc9b
Diffstat (limited to 'scripts')
-rw-r--r--scripts/spec.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/spec.py b/scripts/spec.py
index 2c9507f2..3460cd73 100644
--- a/scripts/spec.py
+++ b/scripts/spec.py
@@ -160,8 +160,15 @@ class Specification:
self.error_db_dict[error_enum] = {'check_implemented': 'N',
'testname': 'None',
'note': ''}
- # update database entry with data from json file
vuid_db_data = self.error_db_dict[error_enum]
+ # check if vuid is implemented but changed extension scope
+ if vuid_db_data['check_implemented'] == 'Y' and \
+ vuid_db_data['ext'] != vuid_json_data['ext']:
+ # should not occur often, currently a hard error to force corrective action
+ print('ERROR: {}/{} is currently implemented and changed extension scope from "{}" to "{}"'.format(
+ vuid, error_enum, vuid_db_data['ext'], vuid_json_data['ext']))
+ exit(1)
+ # update database entry with data from json file
if 'core' == vuid_json_data['ext'] or '!' in vuid_json_data['ext']:
spec_link = "%s#%s" % (core_url, vuid)
else: