sh test.sh >> run.log
//以下为shell文件内容
runFlag=1
while [[ $runFlag -eq 1 ]]
do
result=python ./test.py
echo $result
failed=echo $result | grep "ERROR" | wc -c
echo $failed
if [[ $failed -ne 0 ]];then
echo “FAILED”
runFlag=0
fi
done
sh test.sh >> run.log
//以下为shell文件内容
runFlag=1
while [[ $runFlag -eq 1 ]]
do
result=python ./test.py
echo $result
failed=echo $result | grep "ERROR" | wc -c
echo $failed
if [[ $failed -ne 0 ]];then
echo “FAILED”
runFlag=0
fi
done