Fix post_tests_c.sh to pass shellcheck
This commit is contained in:
parent
517d298071
commit
1a0ff1edb4
|
|
@ -17,14 +17,14 @@ set -ex
|
|||
|
||||
if [ "$CONFIG" != "gcov" ] ; then exit ; fi
|
||||
|
||||
root=$(readlink -f $(dirname $0)/../../..)
|
||||
root=$(readlink -f "$(dirname "$0")/../../..")
|
||||
out=$root/reports/c_cxx_coverage
|
||||
tmp1=$(mktemp)
|
||||
tmp2=$(mktemp)
|
||||
cd $root
|
||||
lcov --capture --directory . --output-file $tmp1
|
||||
lcov --extract $tmp1 "$root/src/*" "$root/include/*" --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/*" "$root/include/*" --output-file "$tmp2"
|
||||
genhtml "$tmp2" --output-directory "$out"
|
||||
rm "$tmp2"
|
||||
rm "$tmp1"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue