From 527a66cb2b1bac50c982bd3eb2f8aa35c6d34c2d Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jan 2024 13:37:26 +0800 Subject: [PATCH] fix: bug in Autotest.sh when result.ref has no totaltimeref --- tests/integrate/Autotest.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integrate/Autotest.sh b/tests/integrate/Autotest.sh index 5310998097..37908d1769 100755 --- a/tests/integrate/Autotest.sh +++ b/tests/integrate/Autotest.sh @@ -74,6 +74,11 @@ check_out(){ # check every 'key' word #------------------------------------------------------ for key in $properties; do + + if [ $key == "totaltimeref" ]; then + # echo "time=$cal ref=$ref" + break + fi #-------------------------------------------------- # calculated value @@ -91,11 +96,6 @@ check_out(){ #-------------------------------------------------- deviation=`awk 'BEGIN {x='$ref';y='$cal';printf "%.'$ca'f\n",x-y}'` - if [ $key == "totaltimeref" ]; then - # echo "time=$cal ref=$ref" - break - fi - #-------------------------------------------------- # If deviation < threshold, then the test passes,