[Piglit] [PATCH] framework: Fix test exclude filtering

Shuang He shuang.he at intel.com
Tue Feb 14 18:48:10 PST 2012


The key to look up in dict may have been filtered out in previous filtering

Signed-off-by: Shuang He <shuang.he at intel.com>
---
 framework/core.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/framework/core.py b/framework/core.py
index 2414709..959ddab 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -528,7 +528,8 @@ class TestProfile:
 
 			# Exclude tests that match an `exclude_filter' regexp (-x options)
 			if env.exclude_filter and matches_any_regexp(path, env.exclude_filter):
-				del self.test_list[path]
+				if self.test_list.has_key(path):
+					del self.test_list[path]
 
 		# Queue up all the concurrent tests, so the pool is filled
 		# at the start of the test run.
-- 
1.7.7



More information about the Piglit mailing list