Skip to content

Commit

Permalink
add bug sta
Browse files Browse the repository at this point in the history
  • Loading branch information
shjNT committed Dec 22, 2021
1 parent 56b575d commit 7f0f894
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/test_examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,22 @@

cases=`find . -maxdepth 1 -name "test_*.py" | sort `
ignore=""
bug=0

for file in ${cases}
do
echo ${file}
if [[ ${ignore} =~ ${file##*/} ]]; then

echo "skip"

else

python -m pytest ${file}
python3.7 -m pytest ${file}
if [ $? -ne 0 ]; then
echo ${file} >> result.txt
bug=`expr ${bug} + 1`
fi
fi
done

echo "total bugs: "${bug} > result.txt
cat result.txt
exit ${bug}

0 comments on commit 7f0f894

Please sign in to comment.