aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests/helper_scripts/run_lcov.sh
diff options
context:
space:
mode:
authorGravatar Mehrdad Afshari <mehrdada@users.noreply.github.com>2017-12-15 16:17:19 -0800
committerGravatar GitHub <noreply@github.com>2017-12-15 16:17:19 -0800
commit336bce09d4e902ec47a46ecc9d333f954825dc8b (patch)
treea75b3a0e5fab0d049ba83eaf204e900fe50e9f7a /tools/run_tests/helper_scripts/run_lcov.sh
parent28839ce3a8bfe1c83017b8045a131698f1a8c904 (diff)
parent290bbd2111fb7069c89cd154965a4dc78b63c95f (diff)
Merge pull request #11622 from mehrdada/shellckec
Fix tools/run_tests/helper_scripts/*.sh to pass shellcheck
Diffstat (limited to 'tools/run_tests/helper_scripts/run_lcov.sh')
-rwxr-xr-xtools/run_tests/helper_scripts/run_lcov.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/run_tests/helper_scripts/run_lcov.sh b/tools/run_tests/helper_scripts/run_lcov.sh
index c7b2cfea62..9d8b6793fc 100755
--- a/tools/run_tests/helper_scripts/run_lcov.sh
+++ b/tools/run_tests/helper_scripts/run_lcov.sh
@@ -15,17 +15,17 @@
set -ex
-out=$(readlink -f ${1:-coverage})
+out=$(readlink -f "${1:-coverage}")
-root=$(readlink -f $(dirname $0)/../../..)
+root=$(readlink -f "$(dirname "$0")/../../..")
shift || true
tmp=$(mktemp)
-cd $root
-tools/run_tests/run_tests.py -c gcov -l c c++ $@ || true
-lcov --capture --directory . --output-file $tmp
-genhtml $tmp --output-directory $out
-rm $tmp
+cd "$root"
+tools/run_tests/run_tests.py -c gcov -l c c++ "$@" || true
+lcov --capture --directory . --output-file "$tmp"
+genhtml "$tmp" --output-directory "$out"
+rm "$tmp"
if which xdg-open > /dev/null
then
- xdg-open file://$out/index.html
+ xdg-open "file://$out/index.html"
fi