make select_tests resilient to default configuration differences (#212)

This commit is contained in:
c-parsons 2019-10-29 11:20:31 -04:00 committed by GitHub
parent 930b3527b9
commit 9f63e1a8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -117,10 +117,16 @@ def _set_conditions(condition_list):
ans = {}
if condition_list[0]:
ans["//command_line_option:cpu"] = "ppc"
else:
ans["//command_line_option:cpu"] = "k8"
if condition_list[1]:
ans["//command_line_option:compilation_mode"] = "opt"
else:
ans["//command_line_option:compilation_mode"] = "dbg"
if condition_list[2]:
ans["//command_line_option:features"] = ["myfeature"]
else:
ans["//command_line_option:features"] = ["notmyfeature"]
return ans
_BooleanInfo = provider()