forked from mindspore-Ecosystem/mindspore
fix bug of runtest.sh when run ut python
This commit is contained in:
parent
bf6da44f84
commit
d7eeed0b27
|
@ -16,21 +16,26 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
CURRPATH=$(cd "$(dirname $0)"; pwd)
|
CURR_PATH=$(cd "$(dirname $0)"; pwd)
|
||||||
|
|
||||||
if [ $# -gt 0 ]; then
|
if [ $# -gt 0 ]; then
|
||||||
if [ $1 == "python" ]; then
|
if [ $1 == "python" ]; then
|
||||||
echo "run python ut"
|
echo "Run ut python."
|
||||||
bash ${CURRPATH}/ut/python/runtest.sh $2
|
cd ${CURR_PATH}/python
|
||||||
|
bash runtest.sh $2
|
||||||
elif [ $1 == "cpp" ]; then
|
elif [ $1 == "cpp" ]; then
|
||||||
echo "run cpp ut"
|
echo "Run ut cpp."
|
||||||
bash ${CURRPATH}/ut/cpp/runtest.sh
|
cd ${CURR_PATH}/cpp
|
||||||
|
bash runtest.sh
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "run all ut"
|
echo "Run all ut."
|
||||||
# 1.run python testcases
|
|
||||||
bash ${CURRPATH}/ut/python/runtest.sh $2
|
|
||||||
|
|
||||||
# 2.run c++ ut testcases
|
# Run python testcases
|
||||||
bash ${CURRPATH}/ut/cpp/runtest.sh
|
cd ${CURR_PATH}/python
|
||||||
|
bash runtest.sh $2
|
||||||
|
|
||||||
|
# Run cpp testcases
|
||||||
|
cd ${CURR_PATH}/cpp
|
||||||
|
bash runtest.sh
|
||||||
fi
|
fi
|
Loading…
Reference in New Issue