From 0ac71cbfda43791f11ab0e4c3f2b1fe4c06aade1 Mon Sep 17 00:00:00 2001 From: zhiru Date: Mon, 1 Jul 2019 15:49:48 +0800 Subject: [PATCH] update Former-commit-id: e7df921b0817f1da8c88fd9f0ff143c0232d751f --- cpp/coverage.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/coverage.sh b/cpp/coverage.sh index dd2b9418..d302170f 100755 --- a/cpp/coverage.sh +++ b/cpp/coverage.sh @@ -11,13 +11,13 @@ DIR_LCOV_OUTPUT="lcov_out" DIR_GCNO="cmake_build" DIR_UNITTEST="milvus/bin" - + MYSQL_USER_NAME=root MYSQL_PASSWORD=Fantast1c MYSQL_HOST='192.168.1.194' MYSQL_PORT='3306' -MYSQL_DB_NAME=`date +%s%N` +MYSQL_DB_NAME=milvus_`date +%s%N` function mysql_exc() { @@ -45,8 +45,10 @@ for test in `ls ${DIR_UNITTEST}`; do db_test) # set run args for db_test args="mysql://${MYSQL_USER_NAME}:${MYSQL_PASSWORD}@${MYSQL_HOST}:${MYSQL_PORT}/${MYSQL_DB_NAME}" + ;; *_test) args="" + ;; esac # run unittest ./${DIR_UNITTEST}/${test} "${args}" -- GitLab