Skip to content

Commit

Permalink
update precheckin scripts (PaddlePaddle#197)
Browse files Browse the repository at this point in the history
Co-authored-by: haichengj <haichengj@graphcore.ai>
  • Loading branch information
jianghaicheng and jianghaicheng authored Sep 28, 2021
1 parent ab2b948 commit dbdbc7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddle/scripts/ipu/prechekin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ source /popsdk/poplar-ubuntu_18_04-2.1.0+145366-ce995e299d/enable.sh
source /popsdk/popart-ubuntu_18_04-2.1.0+145366-ce995e299d/enable.sh
export PYTHONPATH=/paddle/build/python:$PYTHONPATH
test_dir=/paddle/python/paddle/fluid/tests/unittests/ipu/
rm log
for file in `ls $test_dir | grep -i test`
do
echo "$file"
echo $test_dir/$file
if [ "${file##*.}"x = "py"x ]; then
pytest $test_dir/$file -s > log 2>&1
pytest $test_dir/$file -s >> log 2>&1
fi
done
result1=`grep "failed" log`
Expand Down

0 comments on commit dbdbc7a

Please sign in to comment.