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
diff --git a/pydir/crosstest_generator.py b/pydir/crosstest_generator.py
index 3038f4c..945ad00 100755
--- a/pydir/crosstest_generator.py
+++ b/pydir/crosstest_generator.py
@@ -20,10 +20,10 @@
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