Browse Source

!123 modify runtest.sh for python ut exec form

Merge pull request !123 from changzherui/modify_runtest_python_ut
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
acb99f6e8c
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      tests/ut/python/runtest.sh

+ 6
- 2
tests/ut/python/runtest.sh View File

@@ -39,9 +39,13 @@ if [ "x${ENABLE_GE}" == "xON" -o "x${ENABLE_GE}" == "xOn" -o "x${ENABLE_GE}" ==
fi

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
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

RET=$?


Loading…
Cancel
Save