This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Huawei_Technology
/
mindspore
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
13
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
!13438
fix bug of runtest.sh when run ut python
From:
@xsmq
Reviewed-by: @xulei2020,@zhoufeng54,@zhunaipan Signed-off-by: @zhoufeng54,@zhunaipan
tags/v1.2.0-rc1
mindspore-ci-bot
Gitee
5 years ago
parent
56a267a514
d7eeed0b27
commit
4639dc44b8
1 changed files
with
16 additions
and
11 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+16
-11
tests/ut/runtest.sh
tests/runtest.sh → tests/ut/runtest.sh
View File
@@ -16,21 +16,26 @@
set -e
CURRPATH=$(cd "$(dirname $0)"; pwd)
CURR
_
PATH=$(cd "$(dirname $0)"; pwd)
if [ $# -gt 0 ]; then
if [ $1 == "python" ]; then
echo "run python ut"
bash ${CURRPATH}/ut/python/runtest.sh $2
echo "Run ut python."
cd ${CURR_PATH}/python
bash runtest.sh $2
elif [ $1 == "cpp" ]; then
echo "run cpp ut"
bash ${CURRPATH}/ut/cpp/runtest.sh
echo "Run ut cpp."
cd ${CURR_PATH}/cpp
bash runtest.sh
fi
else
echo "run all ut"
# 1.run python testcases
bash ${CURRPATH}/ut/python/runtest.sh $2
echo "Run all ut."
# Run python testcases
cd ${CURR_PATH}/python
bash runtest.sh $2
# 2.run c++ ut testcases
bash ${CURRPATH}/ut/cpp/runtest.sh
fi
# Run cpp testcases
cd ${CURR_PATH}/cpp
bash runtest.sh
fi
Write
Preview
Loading…
Cancel
Save