summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-11-11 17:44:41 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2018-11-15 19:35:56 +0200
commitce1b018ab742492e96b5bdae049a13c2faaefdbf (patch)
treed9f44872cb9e7051b6a6dab0961f30f5a37553ca /scripts/test
parent92f71b8e88c58b38c027a291066337f896ad344b (diff)
downloadtor-ce1b018ab742492e96b5bdae049a13c2faaefdbf.tar.gz
tor-ce1b018ab742492e96b5bdae049a13c2faaefdbf.zip
Fix shellcheck SC2006 warnings in 'coverage' script
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/coverage10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/test/coverage b/scripts/test/coverage
index 59d468ee1e..e611a4be1b 100755
--- a/scripts/test/coverage
+++ b/scripts/test/coverage
@@ -8,19 +8,19 @@
dst=$1
for fn in src/core/*/*.c src/feature/*/*.c src/app/*/*.c src/lib/*/*.c; do
- BN=`basename $fn`
- DN=`dirname $fn`
- F=`echo $BN | sed -e 's/\.c$//;'`
+ BN=$(basename $fn)
+ DN=$(dirname $fn)
+ F=$(echo $BN | sed -e 's/\.c$//;')
GC="${BN}.gcov"
# Figure out the object file names
- ONS=`echo ${DN}/src_*-${F}.o`
+ ONS=$(echo ${DN}/src_*-${F}.o)
ONS_WILDCARD_LITERAL="${DN}/src_*-${F}.o"
# If the wildcard didn't expand, no files
if [ "$ONS" != "${ONS_WILDCARD_LITERAL}" ]
then
for on in $ONS; do
# We should have a gcno file
- GCNO=`echo $on | sed -e 's/\.o$/\.gcno/;'`
+ GCNO=$(echo $on | sed -e 's/\.o$/\.gcno/;')
if [ -e $GCNO ]
then
# No need to test for gcda, since gcov assumes no execution