Skip to content

Commit db5c96d

Browse files
committed
[Breaking Change] (script) Remove all unused shell.
1 parent 1be07a1 commit db5c96d

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed
Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,17 @@
11
#!/usr/bin/env bash
22

3-
#set -ex
3+
set -ex
44

55
test_type=$1
6-
#os=$2
7-
#calculate_all_finally=$2
8-
9-
#IFS=',' read -ra allosarray <<< "$os"
10-
11-
# shellcheck disable=SC2145
12-
#echo "This is all OS array: ${allosarray[@]}"
136

147
coveragedatafile=".coverage.$test_type"
158

169
if [ "$test_type" == "unit-test" ] || [ "$test_type" == "integration-test" ];
1710
then
18-
# for oneos in "${allosarray[@]}" ;
19-
# do
2011
coverage combine --data-file="$coveragedatafile" .coverage."$test_type".*
21-
# done
2212
elif [ "$test_type" == "all-test" ];
2313
then
24-
# for oneos in "${allosarray[@]}" ;
25-
# do
2614
coverage combine --data-file="$coveragedatafile" .coverage.*
27-
# done
2815
else
2916
echo "❌ It doesn't support $test_type currently. Please change to use options 'unit-test', 'integration-test' or 'all-test'." && exit 1
3017
fi
@@ -33,11 +20,3 @@ coverage report -m --data-file="$coveragedatafile"
3320
coverage xml --data-file="$coveragedatafile" -o coverage_"$test_type".xml
3421
cp "$coveragedatafile" .coverage
3522
echo "✅ All processing done." && exit 0
36-
37-
#if [ "$calculate_all_finally" == "false" ]; then
38-
# echo "✅ All processing done." && exit 0
39-
#else
40-
# coverage combine .coverage.*
41-
# coverage xml
42-
# echo "✅ All processing done." && exit 0
43-
#fi

0 commit comments

Comments
 (0)