From 1a8a80b868a387afcb5a24533bc5b7724b2c6b06 Mon Sep 17 00:00:00 2001 From: Asra Ali Date: Thu, 19 Nov 2020 10:09:08 -0500 Subject: [PATCH] fix default Signed-off-by: Asra Ali --- bazel/BUILD | 4 ++-- bazel/envoy_select.bzl | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bazel/BUILD b/bazel/BUILD index 268cdb752ec64..8f1b7f605278c 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -277,8 +277,8 @@ config_setting( ) config_setting( - name = "enable_new_codecs_in_integration_tests", - values = {"define": "use_new_codecs_in_integration_tests=true"}, + name = "enable_legacy_codecs_in_integration_tests", + values = {"define": "use_new_codecs_in_integration_tests=false"}, ) cc_proto_library( diff --git a/bazel/envoy_select.bzl b/bazel/envoy_select.bzl index 8cbecb26075cc..b0789ae51291c 100644 --- a/bazel/envoy_select.bzl +++ b/bazel/envoy_select.bzl @@ -59,9 +59,9 @@ def envoy_select_wasm_wasmtime(xs): "//conditions:default": [], }) -# Select the given values if use legacy codecs in test is on in the current build. +# Select the given values by default and remove if use new codecs are disabled for current build. def envoy_select_new_codecs_in_integration_tests(xs, repository = ""): return select({ - repository + "//bazel:enable_new_codecs_in_integration_tests": xs, - "//conditions:default": [], + repository + "//bazel:enable_legacy_codecs_in_integration_tests": [], + "//conditions:default": xs, })