diff options
author | c-parsons <cparsons@google.com> | 2019-10-29 11:20:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-29 11:20:31 -0400 |
commit | 9f63e1a8d46d49ec44c007a2d43ba2f3bec84f7a (patch) | |
tree | 4e70df3b5f54b93e9648593cbc6309cf01d9c7fa | |
parent | 930b3527b91213940f57289bb581a8b64d3c31ee (diff) | |
download | bazel-skylib-9f63e1a8d46d49ec44c007a2d43ba2f3bec84f7a.tar.gz |
make select_tests resilient to default configuration differences (#212)
-rw-r--r-- | tests/selects_tests.bzl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/selects_tests.bzl b/tests/selects_tests.bzl index 1d77cee..b2bda92 100644 --- a/tests/selects_tests.bzl +++ b/tests/selects_tests.bzl @@ -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() |