From: Tobias Brunner Date: Wed, 26 Jul 2023 11:05:56 +0000 (+0200) Subject: testing: Format total time in a more readable way X-Git-Tag: android-2.4.2~22^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba857930cb8192f40dec4b3fc77c6587234a2d3;p=thirdparty%2Fstrongswan.git testing: Format total time in a more readable way --- diff --git a/testing/do-tests b/testing/do-tests index 75b6b3e34b..5880c958a9 100755 --- a/testing/do-tests +++ b/testing/do-tests @@ -957,6 +957,8 @@ done # finish the results html file # +printf -v timetotal_fmt '%02d:%02d:%02d' $((timetotal/3600)) $((timetotal%3600/60)) $((timetotal%60)) + cat >> $TESTRESULTSHTML << @EOF      @@ -968,7 +970,7 @@ cat >> $TESTRESULTSHTML << @EOF Failed$failed_cnt   - Time [s]$timetotal   + Time$timetotal_fmt (${timetotal}s)   @@ -1014,4 +1016,4 @@ echo "or via the link http://$ipv4_winnetou/testresults/$TESTDATE" ENDDATE=`date +%Y%m%d-%H%M-%S` echo -echo "Finished : $ENDDATE" +echo "Finished : $ENDDATE ($timetotal_fmt)"