summaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2018-11-11 17:50:43 +0200
committerGeorge Kadianakis <desnacked@riseup.net>2018-11-15 19:35:56 +0200
commit7c04b00e65d67a38f119f4d3e50e8a47236e202f (patch)
tree14f9befada14d3eacbcb2e538d4f59f76a83c183 /scripts/test
parentce1b018ab742492e96b5bdae049a13c2faaefdbf (diff)
downloadtor-7c04b00e65d67a38f119f4d3e50e8a47236e202f.tar.gz
tor-7c04b00e65d67a38f119f4d3e50e8a47236e202f.zip
Fix most instances of SC2086 warning
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/coverage18
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/test/coverage b/scripts/test/coverage
index e611a4be1b..180a2d6dcb 100755
--- a/scripts/test/coverage
+++ b/scripts/test/coverage
@@ -8,9 +8,9 @@
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)
@@ -20,18 +20,18 @@ for fn in src/core/*/*.c src/feature/*/*.c src/app/*/*.c src/lib/*/*.c; do
then
for on in $ONS; do
# We should have a gcno file
- GCNO=$(echo $on | sed -e 's/\.o$/\.gcno/;')
- if [ -e $GCNO ]
+ GCNO=$(echo "$on" | sed -e 's/\.o$/\.gcno/;')
+ if [ -e "$GCNO" ]
then
# No need to test for gcda, since gcov assumes no execution
# if it's absent
- rm -f $GC
- gcov -o $on $fn
- if [ -e $GC ]
+ rm -f "$GC"
+ gcov -o "$on" "$fn"
+ if [ -e "$GC" ]
then
if [ -d "$dst" ]
then
- mv $GC $dst/$GC
+ mv "$GC" "$dst"/"$GC"
fi
else
echo "gcov -o $on $fn didn't make a .gcov file"