!14387 modify run python ut

From: @changzherui
Reviewed-by: @xsmq,@zhunaipan
Signed-off-by: @zhunaipan
This commit is contained in:
mindspore-ci-bot 2021-03-31 09:38:32 +08:00 committed by Gitee
commit a3e19e2df9
1 changed files with 16 additions and 3 deletions

View File

@ -40,8 +40,15 @@ if [ $# -eq 1 ] && ([ "$1" == "stage1" ] || [ "$1" == "stage2" ] || [ "$1" ==
fi
elif [ $1 == "stage2" ]; then
echo "run python parallel, nn"
pytest -v -n 2 --dist=loadfile -v $CURRPATH/parallel $CURRPATH/train $CURRPATH/nn
echo "run python parallel, train, nn"
pytest -v -n 2 --dist=loadfile $CURRPATH/parallel
RET=$?
if [ ${RET} -ne 0 ]; then
exit ${RET}
fi
pytest -v -n 2 --dist=loadfile $CURRPATH/train $CURRPATH/nn
RET=$?
if [ ${RET} -ne 0 ]; then
@ -74,7 +81,13 @@ else
exit ${RET}
fi
pytest -v -n 2 --dist=loadfile -v $CURRPATH/parallel $CURRPATH/train $CURRPATH/nn
pytest -v -n 2 --dist=loadfile $CURRPATH/parallel
RET=$?
if [ ${RET} -ne 0 ]; then
exit ${RET}
fi
pytest -v -n 2 --dist=loadfile $CURRPATH/train $CURRPATH/nn
RET=$?
if [ ${RET} -ne 0 ]; then
exit ${RET}