diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-12-09 14:10:47 -0700 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-12-09 14:57:04 -0700 |
| commit | e5fbb1061911c6edbbd6e7d6a89ffaf5649d0240 (patch) | |
| tree | d4d931080ae343b400fb47f35a36f91a9a4dabab | |
| parent | b5ccc5894e841e50071279c77028e0c26432a0f9 (diff) | |
| download | usermoji-e5fbb1061911c6edbbd6e7d6a89ffaf5649d0240.tar.xz | |
scripts:Update stats script parser
Some tweaks to stats script validation error parsing to correctly
grab all the errors and ignore that noise.
| -rwxr-xr-x | layers/vk_validation_stats.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/layers/vk_validation_stats.py b/layers/vk_validation_stats.py index 84d3dce6..55783cd5 100755 --- a/layers/vk_validation_stats.py +++ b/layers/vk_validation_stats.py @@ -123,7 +123,9 @@ class ValidationHeader: if 'VALIDATION_ERROR_MAX_ENUM' in line: grab_enums = False break # done - if 'VALIDATION_ERROR_' in line: + elif 'VALIDATION_ERROR_UNDEFINED' in line: + continue + elif 'VALIDATION_ERROR_' in line: enum = line.split(' = ')[0] self.enums.append(enum) #print "Found %d error enums. First is %s and last is %s." % (len(self.enums), self.enums[0], self.enums[-1]) @@ -143,13 +145,13 @@ class ValidationSource: continue # Find enums #if 'VALIDATION_ERROR_' in line and True not in [ignore in line for ignore in ['[VALIDATION_ERROR_', 'UNIQUE_VALIDATION_ERROR_CODE']]: - if 'VALIDATION_ERROR_' in line and 'UNIQUE_VALIDATION_ERROR_CODE' not in line: + if ' VALIDATION_ERROR_' in line: # Need to isolate the validation error enum #print("Line has check:%s" % (line)) line_list = line.split() enum = '' for str in line_list: - if 'VALIDATION_ERROR_' in str and True not in [ignore_str in str for ignore_str in ['[VALIDATION_ERROR_', 'VALIDATION_ERROR_UNDEFINED']]: + if 'VALIDATION_ERROR_' in str and True not in [ignore_str in str for ignore_str in ['[VALIDATION_ERROR_', 'VALIDATION_ERROR_UNDEFINED', 'UNIQUE_VALIDATION_ERROR_CODE']]: enum = str.strip(',);') break if enum != '': |
