From 4717b4c975debf5314eb10602735cb83f2997634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 6 May 2019 15:58:23 +0300 Subject: [PATCH] MXS-2152: Enable code coverage for specific test runs --- maxscale-system-test/mdbci/run_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maxscale-system-test/mdbci/run_test.sh b/maxscale-system-test/mdbci/run_test.sh index e16508601..44700792e 100755 --- a/maxscale-system-test/mdbci/run_test.sh +++ b/maxscale-system-test/mdbci/run_test.sh @@ -70,7 +70,7 @@ ulimit -c unlimited cd ${script_dir}/../../ -if [[ "$cmake_flags" =~ "GCOV=Y" ]] +if [[ "$name" =~ '-gcov' ]] then echo "Building MaxScale from source on maxscale_000" rsync -avz --delete -e "ssh $scpopt" ${script_dir}/../../ $sshuser@$IP:/tmp/MaxScale/ @@ -100,9 +100,9 @@ else ctest -VV ${test_set} fi -if [[ "$cmake_flags" =~ "GCOV=Y" ]] +if [[ "$name" =~ '-gcov' ]] then - ssh $sshopt "cd /tmp/build && lcov --gcov-tool=$(command -v gcov) -c -d . -o lcov.info && genhtml -o /tmp/gcov-report/ lcov.info" + ssh $sshopt 'cd /tmp/build && lcov --gcov-tool=$(command -v gcov) -c -d . -o lcov.info && genhtml -o /tmp/gcov-report/ lcov.info' rsync -avz --delete -e "ssh $scpopt" $sshuser@$IP:/tmp/gcov-report/ ./${logs_publish_dir} fi