diff options
author | Mehrdad Afshari <mmx@google.com> | 2017-06-27 14:44:55 -0700 |
---|---|---|
committer | Mehrdad Afshari <mmx@google.com> | 2017-12-15 13:31:44 -0800 |
commit | 1a0ff1edb48950c5a3d309e8948665bddfb148fc (patch) | |
tree | a388b2885e45ea0f3d8293401e5d1526ef5faa18 /tools | |
parent | 517d298071b36fe1f9e3597a4b08813742be96e9 (diff) |
Fix post_tests_c.sh to pass shellcheck
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/run_tests/helper_scripts/post_tests_c.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/run_tests/helper_scripts/post_tests_c.sh b/tools/run_tests/helper_scripts/post_tests_c.sh index a4a8f44dca..e4ab203543 100755 --- a/tools/run_tests/helper_scripts/post_tests_c.sh +++ b/tools/run_tests/helper_scripts/post_tests_c.sh @@ -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" |