未验证 提交 ead696ae 编写于 作者: Q Qi Li 提交者: GitHub

skip dist test cases if mlu card number only one, test=develop (#44549)

上级 b470bd18
...@@ -2280,7 +2280,14 @@ EOF ...@@ -2280,7 +2280,14 @@ EOF
set +x set +x
test_cases=$(ctest -N -V) # get all test cases test_cases=$(ctest -N -V) # get all test cases
get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list
mlu_card_num=$(cnmon info -t | grep Card | wc -l)
if [[ $mlu_card_num == 1 ]]; then
get_quickly_disable_ut||disable_ut_quickly='disable_ut' # indicate whether the case was in quickly disable list
else
disable_ut_quickly='disable_ut'
fi
while read -r line; do while read -r line; do
if [[ "$line" == "" ]]; then if [[ "$line" == "" ]]; then
continue continue
......
...@@ -33,6 +33,9 @@ def download_file(): ...@@ -33,6 +33,9 @@ def download_file():
if paddle.is_compiled_with_npu(): if paddle.is_compiled_with_npu():
url = "https://sys-p0.bj.bcebos.com/prec/{}".format('disable_ut_npu') url = "https://sys-p0.bj.bcebos.com/prec/{}".format('disable_ut_npu')
if paddle.is_compiled_with_mlu():
url = "https://sys-p0.bj.bcebos.com/prec/{}".format('disable_ut_mlu')
f = requests.get(url) f = requests.get(url)
data = f.text data = f.text
status_code = f.status_code status_code = f.status_code
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册