Fix check for unit tests in scripts

This commit is contained in:
Markus Mäkelä 2018-10-08 17:16:48 +03:00
parent 9789159427
commit e3ef99f1f7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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