Fix post_tests_php.sh to pass shellcheck

pull/11622/head
Mehrdad Afshari 8 years ago
parent d8ef4887dd
commit 4ef3c92170
  1. 14
      tools/run_tests/helper_scripts/post_tests_php.sh

@ -17,15 +17,15 @@ set -ex
if [ "$CONFIG" != "gcov" ] ; then exit ; fi
root=$(readlink -f $(dirname $0)/../../..)
root=$(readlink -f "$(dirname "$0")/../../..")
out=$root/reports/php_ext_coverage
tmp1=$(mktemp)
tmp2=$(mktemp)
cd $root
lcov --capture --directory . --output-file $tmp1
lcov --extract $tmp1 "$root/src/php/ext/grpc/*" --output-file $tmp2
genhtml $tmp2 --output-directory $out
rm $tmp2
rm $tmp1
cd "$root"
lcov --capture --directory . --output-file "$tmp1"
lcov --extract "$tmp1" "$root/src/php/ext/grpc/*" --output-file "$tmp2"
genhtml "$tmp2" --output-directory "$out"
rm "$tmp2"
rm "$tmp1"
# todo(mattkwong): generate coverage report for php and copy to reports/php

Loading…
Cancel
Save