From 1ed2bf185c2992652b2694980fcf01c7f18102c1 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 24 Feb 2012 10:01:14 -0800 Subject: framework: Fix lack-of-filtering of included tests. Commit 4fbe147b5817b2ba0fe44fe9db96a2d05288aee introduced a regression where not specifying a -t option would result in all tests being excluded. Signed-off-by: Kenneth Graunke --- framework/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/core.py') diff --git a/framework/core.py b/framework/core.py index a84c68ff..e2e80978 100644 --- a/framework/core.py +++ b/framework/core.py @@ -521,7 +521,7 @@ class TestProfile: return True in map(lambda r: r.search(x) != None, re_list) def test_matches((path, test)): - return (matches_any_regexp(path, env.filter) and + return ((not env.filter or matches_any_regexp(path, env.filter)) and not matches_any_regexp(path, env.exclude_filter)) # Filter out unwanted tests -- cgit v1.2.3