diff --git a/scripts/ci/combine_coverage_reports.sh b/scripts/ci/combine_coverage_reports.sh index 8c214585..50228ae7 100644 --- a/scripts/ci/combine_coverage_reports.sh +++ b/scripts/ci/combine_coverage_reports.sh @@ -6,14 +6,11 @@ test_type=$1 coveragedatafile=".coverage.$test_type" -if [ "$test_type" == "unit-test" ] || [ "$test_type" == "integration-test" ] || [ "$test_type" == "system-test" ]; -then - coverage combine --data-file="$coveragedatafile" .coverage."$test_type".* -elif [ "$test_type" == "all-test" ]; +if [ "$test_type" == "all-test" ]; then coverage combine --data-file="$coveragedatafile" .coverage.* else - echo "❌ It doesn't support $test_type currently. Please change to use options 'unit-test', 'integration-test', 'system-test' or 'all-test'." && exit 1 + coverage combine --data-file="$coveragedatafile" .coverage."$test_type".* fi coverage report -m --data-file="$coveragedatafile"