summaryrefslogtreecommitdiff
path: root/acov.sh
diff options
context:
space:
mode:
authorDaniel Díaz <daniel.diaz@linaro.org>2016-01-08 20:08:43 -0600
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-01-20 17:16:32 +0530
commit6f7cad601890ed1571100ef69154ba990e2dd949 (patch)
tree7f3ce2d961ca3d84b124c2bc1881c0e826a1d3aa /acov.sh
parent119106b7a616b8313843d330e0ea58cef9b56e33 (diff)
acov: Create directory for results if not existent.
Don't fail in case it already exists. Change-Id: I44b7ee0183be05612af9c18233d0e24d56f91b3c Signed-off-by: Daniel Díaz <daniel.diaz@linaro.org>
Diffstat (limited to 'acov.sh')
-rwxr-xr-xacov.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/acov.sh b/acov.sh
index 606dfde..d150c3c 100755
--- a/acov.sh
+++ b/acov.sh
@@ -83,7 +83,7 @@ for target in "ARM" "x86" "mips"; do
done
export EXTRA_ARGS=--gcov-tool=/usr/bin/gcov-4.6
-mkdir $WORKSPACE/gcov-results
+mkdir -p $WORKSPACE/gcov-results
lcov -c -b $ANDROID_BUILD_TOP -d $ANDROID_HOST_OUT -o $WORKSPACE/gcov-results/results $EXTRA_ARGS
genhtml -q -o $WORKSPACE/gcov-results/ $WORKSPACE/gcov-results/results
acovscore=`grep " %" $WORKSPACE/gcov-results/index.html | sed -e "s/.*\">//g" | sed -e "s/%.*//g"`