From 77f1e67b1104a9054fe1867b338a20369b987048 Mon Sep 17 00:00:00 2001 From: liuyq-617 Date: Tue, 22 Dec 2020 19:28:18 +0800 Subject: [PATCH] fix script errors --- tests/test-all.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-all.sh b/tests/test-all.sh index 0affe5edf4..58ca4d73d6 100755 --- a/tests/test-all.sh +++ b/tests/test-all.sh @@ -33,7 +33,9 @@ function runSimCaseOneByOnefq { start_time=`date +%s` ./test.sh -f $case > /dev/null 2>&1 && \ echo -e "${GREEN}$case success${NC}" | tee -a out.log || \ - echo -e "${RED}$case failed${NC}" | tee -a out.log + grep 'script.*success.*m$' ../../../sim/tsim/log/taoslog0.0 && echo -e "${GREEN}$case success${NC}" | tee -a out.log || echo -e "${RED}$case failed${NC}" | tee -a out.log + + out_log=`tail -1 out.log ` if [[ $out_log =~ 'failed' ]];then exit 8 -- GitLab