[TD-1990]<test>fix test case error

This commit is contained in:
liuyq-617 2020-11-09 11:42:41 +08:00
parent 4638582eb8
commit 2c02b8cd0a
1 changed files with 6 additions and 1 deletions

View File

@ -26,7 +26,12 @@ function runPyCaseOneByOne {
while read -r line; do
if [[ $line =~ ^python.* ]]; then
if [[ $line != *sleep* ]]; then
case=`echo $line|awk '{print $NF}'`
if [[ $line =~ '-r' ]];then
case=`echo $line|awk '{print $4}'`
else
case=`echo $line|awk '{print $NF}'`
fi
start_time=`date +%s`
$line > /dev/null 2>&1 && \
echo -e "${GREEN}$case success${NC}" | tee -a pytest-out.log || \