Commit 833f13f9 by Jim Stichnoth

Subzero: Fix a bug in cross test generation.

The attribute matching logic was wrong. If you specify the exact set of attributes, i.e. for a single test, no match would be found due to the < instead of <= test. BUG= none R=jvoung@chromium.org Review URL: https://codereview.chromium.org/1020473002
parent c9258225
......@@ -20,10 +20,10 @@ def Match(desc, includes, excludes, default_match):
Otherwise, the 'default_match' value is returned.
"""
for exclude in excludes:
if exclude < desc:
if exclude <= desc:
return False
for include in includes:
if include < desc:
if include <= desc:
return True
return default_match
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment