diff --git a/maxscale-system-test/mdbci/run_test.sh b/maxscale-system-test/mdbci/run_test.sh index 9a927205f..ec6a1fc93 100755 --- a/maxscale-system-test/mdbci/run_test.sh +++ b/maxscale-system-test/mdbci/run_test.sh @@ -108,9 +108,10 @@ fi 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 --prefix /tmp/MaxScale/ -o /tmp/gcov-report/ lcov.info' + rsync -a --delete -e "ssh $scpopt" $sshuser@$IP:/tmp/gcov-report/ ./gcov-report/ mkdir -p ${logs_publish_dir}/coverage/ - rsync -a --delete -e "ssh $scpopt" $sshuser@$IP:/tmp/gcov-report/ ${logs_publish_dir}/coverage/ + cp -r ./gcov-report/ ${logs_publish_dir}/coverage/ fi cp core.* ${logs_publish_dir}