diff options
| author | Tobin Ehlis <tobine@google.com> | 2017-05-25 14:55:42 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2017-05-25 16:24:38 -0600 |
| commit | c1fa81e36d5e59b9d4983136acf1f25b02692850 (patch) | |
| tree | 6fd22da9f9de9cd1fcd518ba068453df67c8d9ad | |
| parent | 66b9f225d598ede75b0eff775e944d8d32338513 (diff) | |
| download | usermoji-c1fa81e36d5e59b9d4983136acf1f25b02692850.tar.xz | |
scripts:Fix doc validation for 8-col DB
Update doc validation to read in the new VUID string and core|ext
columns of the vk_validation_error_database.txt.
| -rwxr-xr-x | layers/vk_validation_stats.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/layers/vk_validation_stats.py b/layers/vk_validation_stats.py index befbc336..a586f67b 100755 --- a/layers/vk_validation_stats.py +++ b/layers/vk_validation_stats.py @@ -100,19 +100,23 @@ class ValidationDatabase: if line.startswith('#') or '' == line: continue db_line = line.split(self.delimiter) - if len(db_line) != 6: - print("ERROR: Bad database line doesn't have 6 elements: %s" % (line)) + if len(db_line) != 8: + print("ERROR: Bad database line doesn't have 8 elements: %s" % (line)) error_enum = db_line[0] implemented = db_line[1] testname = db_line[2] api = db_line[3] - error_str = db_line[4] - note = db_line[5] + vuid_string = db_line[4] + core_ext = db_line[5] + error_str = db_line[6] + note = db_line[7] # Read complete database contents into our class var for later use self.db_dict[error_enum] = {} self.db_dict[error_enum]['check_implemented'] = implemented self.db_dict[error_enum]['testname'] = testname self.db_dict[error_enum]['api'] = api + self.db_dict[error_enum]['vuid_string'] = vuid_string + self.db_dict[error_enum]['core_ext'] = core_ext self.db_dict[error_enum]['error_string'] = error_str self.db_dict[error_enum]['note'] = note # Now build custom data structs |
