From 4ba857930cb8192f40dec4b3fc77c6587234a2d3 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 26 Jul 2023 13:05:56 +0200 Subject: [PATCH] testing: Format total time in a more readable way --- testing/do-tests | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)" -- 2.47.2