modify python ut

This commit is contained in:
changzherui 2021-03-30 16:37:34 +08:00
parent 7d911cdeeb
commit fde2856d5d
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}