summaryrefslogtreecommitdiff
path: root/test/utils
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-11-09 12:38:23 +0000
committerGitHub <noreply@github.com>2017-11-09 12:38:23 +0000
commit4443da2d79afc0daea6790d3aa81ade83a5455e7 (patch)
treeb0472b24c13bb1a46ca741c203d1467f0086b235 /test/utils
parent446463578709af20a602fee66663386361cc02a5 (diff)
downloadansible-4443da2d79afc0daea6790d3aa81ade83a5455e7.tar.gz
Remove debug (#32736)
* Make script executable * Tidy up comments
Diffstat (limited to 'test/utils')
-rwxr-xr-x[-rw-r--r--]test/utils/dci/dci-coverage.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/utils/dci/dci-coverage.sh b/test/utils/dci/dci-coverage.sh
index 4047da7b30..2ed9b2776e 100644..100755
--- a/test/utils/dci/dci-coverage.sh
+++ b/test/utils/dci/dci-coverage.sh
@@ -2,9 +2,13 @@
set -o pipefail
+# Script invoked by DCI-Agents hooks/post-running.yml
+
+# Platform: $1 = (ios, openvswitch, vyos, ...)
+# Branch: $2 = (devel, stable-2.4, ...)
+
test="dci-$1"
branch="$2"
-CODECOV_SLUG="ansible/ansible"
if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | grep -q .; then
stub=""
@@ -12,7 +16,7 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
# shellcheck disable=SC2086
test/runner/ansible-test coverage xml -v --requirements --group-by command --group-by version ${stub:+"$stub"}
- # upload coverage report to codecov.io only when using complete on-demand coverage
+ # upload coverage report to codecov.io
for file in test/results/reports/coverage=*.xml; do
flags="${file##*/coverage=}"
flags="${flags%.xml}"
@@ -32,7 +36,6 @@ if find test/results/coverage/ -mindepth 1 -name '.*' -prune -o -print -quit | g
-K \
-B "$branch" \
-r "ansible/ansible" \
- -v \
|| echo "Failed to upload code coverage report to codecov.io: ${file}"
done
fi