提交 43af2f84 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!151 fix broad id and shell script

Merge pull request !151 from gziyan/fix_board_id
......@@ -318,7 +318,7 @@ export RANK_ID=0
echo "start training for device 0"
env > env0.log
pytest -s -v ./resnet50_distributed_training.py > train.log0 2>&1
if [ $i -eq 0 ];then
if [ $? -eq 0 ];then
echo "training success"
else
echo "training failed"
......
......@@ -42,7 +42,7 @@ export RANK_ID=0
echo "start training for device 0"
env > env0.log
pytest -s -v ./resnet50_distributed_training.py > train.log0 2>&1
if [ $i -eq 0 ];then
if [ $? -eq 0 ];then
echo "training success"
else
echo "training failed"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册