diff --git a/BUILD/build_deb_local.sh b/BUILD/build_deb_local.sh index d918dec3d..6bfff2ed4 100755 --- a/BUILD/build_deb_local.sh +++ b/BUILD/build_deb_local.sh @@ -14,7 +14,7 @@ cmake .. $cmake_flags export LD_LIBRARY_PATH=$PWD/log_manager:$PWD/query_classifier make || exit 1 -if [[ "$cmake_flags" =~ "BUILD_TESTS" ]] +if [[ "$cmake_flags" =~ "BUILD_TESTS=Y" ]] then # We don't care about memory leaks in the tests (e.g. servers are never freed) export ASAN_OPTIONS=detect_leaks=0 diff --git a/BUILD/build_rpm_local.sh b/BUILD/build_rpm_local.sh index 7ac692532..a0a092d97 100755 --- a/BUILD/build_rpm_local.sh +++ b/BUILD/build_rpm_local.sh @@ -12,7 +12,7 @@ cd _build cmake .. $cmake_flags make || exit 1 -if [[ "$cmake_flags" =~ "BUILD_TESTS" ]] +if [[ "$cmake_flags" =~ "BUILD_TESTS=Y" ]] then # We don't care about memory leaks in the tests (e.g. servers are never freed) export ASAN_OPTIONS=detect_leaks=0