提交 86a33985 编写于 作者: 高东海's avatar 高东海

modify runtest py ut for parallel exec

上级 9be1a01d
...@@ -39,9 +39,13 @@ if [ "x${ENABLE_GE}" == "xON" -o "x${ENABLE_GE}" == "xOn" -o "x${ENABLE_GE}" == ...@@ -39,9 +39,13 @@ if [ "x${ENABLE_GE}" == "xON" -o "x${ENABLE_GE}" == "xOn" -o "x${ENABLE_GE}" ==
fi fi
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
pytest -s --ignore=$1/pynative_mode $IGNORE_EXEC $1 pytest -s --ignore=$1/pynative_mode --ignore=$1/parallel --ignore=$1/train $IGNORE_EXEC $1
pytest -n 4 --dist=loadfile -v $1/parallel
pytest -n 4 --dist=loadfile -v $1/train
else else
pytest --ignore=$CURRPATH/pynative_mode $IGNORE_EXEC $CURRPATH pytest --ignore=$CURRPATH/pynative_mode --ignore=$CURRPATH/parallel --ignore=$CURRPATH/train $IGNORE_EXEC $CURRPATH
pytest -n 4 --dist=loadfile -v $CURRPATH/parallel
pytest -n 4 --dist=loadfile -v $CURRPATH/train
fi fi
RET=$? RET=$?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册