File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -291,16 +291,18 @@ function main() {
291
291
done <<< " $disable_ut_npu" ;
292
292
disable_ut_list+=" ^disable_ut_npu$"
293
293
294
- disable_ut_list+=" |"
295
- while read -r line; do
296
- res=$( echo " ${changed_ut_list[@]} " | grep " ${line} " | wc -l)
297
- if [ $res -eq 0 ]; then
298
- disable_ut_list+=" ^" ${line} " $|"
299
- else
300
- echo " Found ${line} code changed, ignore ut list disabled in disable_ut_npu"
301
- fi
302
- done <<< " $important_ut_npu" ;
303
- disable_ut_list+=" ^important_ut_npu$"
294
+ if [ " ${TEST_IMPORTANT:- OFF} " == " OFF" ]; then
295
+ disable_ut_list+=" |"
296
+ while read -r line; do
297
+ res=$( echo " ${changed_ut_list[@]} " | grep " ${line} " | wc -l)
298
+ if [ $res -eq 0 ]; then
299
+ disable_ut_list+=" ^" ${line} " $|"
300
+ else
301
+ echo " Found ${line} code changed, ignore ut list disabled in disable_ut_npu"
302
+ fi
303
+ done <<< " $important_ut_npu" ;
304
+ disable_ut_list+=" ^important_ut_npu$"
305
+ fi
304
306
305
307
echo " disable_ut_list=${disable_ut_list} "
306
308
IFS=$IFS_DEFAULT
You can’t perform that action at this time.
0 commit comments