File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1187,17 +1187,17 @@ function trigger()
11871187 done
11881188}
11891189
1190- # if collect code coverage, ignore -s, test all test cases.
1191- if [[ $TEST_CASE_ARR == " unit" ]]; then
1192- # unit test cases are designed with specific compilation flags
1193- # and run under specific modes.
1194- # There is no need to loop through all running modes in this script.
1195- unit_test || (echo " TEST FAILED" ; exit 1)
1196- collect_coverage unit
1197- echo " JUST SKIP UNIT TEST NOW"
1198- elif [[ $TEST_CASE_ARR == " spec" ]]; then
1190+ if [[ $TEST_CASE_ARR ]]; then
1191+ if [[ $TEST_CASE_ARR == " unit" ]]; then
1192+ # unit test cases are designed with specific compilation flags
1193+ # and run under specific modes.
1194+ # There is no need to loop through all running modes in this script.
1195+ unit_test || (echo " TEST FAILED" ; exit 1)
1196+ collect_coverage unit
1197+ else
11991198 # loop through all running modes
12001199 trigger || (echo " TEST FAILED" ; exit 1)
1200+ fi
12011201else
12021202 # test all suite, ignore polybench and libsodium because of long time cost
12031203 TEST_CASE_ARR=(" spec" " malformed" " standalone" )
You can’t perform that action at this time.
0 commit comments