From 9f63e1a8d46d49ec44c007a2d43ba2f3bec84f7a Mon Sep 17 00:00:00 2001 From: c-parsons Date: Tue, 29 Oct 2019 11:20:31 -0400 Subject: [PATCH] make select_tests resilient to default configuration differences (#212) --- tests/selects_tests.bzl | 6 ++++++ 1 file changed, 6 insertions(+) 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()