From 8d6556b91653f8a92af125dd0b48f65bb207bdde Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Mon, 5 Dec 2016 14:57:44 -0700 Subject: scripts:Ignore VALIDATION_ERROR_UNDEFINED VALIDATION_ERROR_UNDEFINED is a special case that shouldn't be recorded as an actual check in the source. --- layers/vk_validation_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/vk_validation_stats.py b/layers/vk_validation_stats.py index ea5b8812..84d3dce6 100755 --- a/layers/vk_validation_stats.py +++ b/layers/vk_validation_stats.py @@ -149,7 +149,7 @@ class ValidationSource: line_list = line.split() enum = '' for str in line_list: - if 'VALIDATION_ERROR_' in str and '[VALIDATION_ERROR_' not in str: + if 'VALIDATION_ERROR_' in str and True not in [ignore_str in str for ignore_str in ['[VALIDATION_ERROR_', 'VALIDATION_ERROR_UNDEFINED']]: enum = str.strip(',);') break if enum != '': -- cgit v1.2.3