From dbdbc7a9db431ff3e09528533e6e8ac16ace706c Mon Sep 17 00:00:00 2001 From: jianghaicheng Date: Tue, 28 Sep 2021 08:44:01 +0800 Subject: [PATCH] update precheckin scripts (#197) Co-authored-by: haichengj --- paddle/scripts/ipu/prechekin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddle/scripts/ipu/prechekin.sh b/paddle/scripts/ipu/prechekin.sh index 77d0c92428d88..5acc601c7db29 100644 --- a/paddle/scripts/ipu/prechekin.sh +++ b/paddle/scripts/ipu/prechekin.sh @@ -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`