From be09ea00538d386df439efa8438f7374e6709bf8 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Wed, 20 Sep 2023 23:53:06 +0100 Subject: [PATCH] Adapt codecov tool to new release of tarpaulin. --- tools/codecov.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tools/codecov.sh b/tools/codecov.sh index 9680cdd..615cd55 100755 --- a/tools/codecov.sh +++ b/tools/codecov.sh @@ -13,9 +13,9 @@ source "tools/utils.sh" assert_installed "cargo-tarpaulin" -output_format=Html +output_format=html -args=$(getopt -l "xml" -o "x" -- "$@") +args=$(getopt -o '' -l xml -- "$@") eval set -- "$args" @@ -26,9 +26,8 @@ while [ $# -ge 1 ]; do shift break ;; - -x|--xml) - output_format=Xml - shift + --xml) + output_format=xml ;; esac @@ -39,7 +38,7 @@ done cargo clean cargo tarpaulin --force-clean --ignore-panics --engine llvm --timeout 1200 --out $output_format -if [ "$output_format" == "Html" ]; then +if [ "$output_format" == "html" ]; then echo echo "You can find the test coverage results at file://$(pwd)/tarpaulin-report.html" fi