From f9b5163670789a41ca9494f0d28b0902d6bfdd07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 21 Apr 2021 13:27:31 +0100 Subject: [PATCH] ITS#6207 Log timings for lloadd tests --- tests/scripts/lloadd-all | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/scripts/lloadd-all b/tests/scripts/lloadd-all index 26f11bdc60..00d282b259 100755 --- a/tests/scripts/lloadd-all +++ b/tests/scripts/lloadd-all @@ -60,12 +60,15 @@ EOF BCMD=`basename $CMD` if [ -x "$CMD" ]; then echo ">>>>> Starting ${TB}$BCMD${TN} for $BACKEND..." + START=`date +%s` $CMD RC=$? + END=`date +%s` + if test $RC -eq 0 ; then - echo ">>>>> $BCMD completed ${TB}OK${TN} for $BACKEND." + echo ">>>>> $BCMD completed ${TB}OK${TN} for $BACKEND after $(( $END - $START )) seconds." else - echo ">>>>> $BCMD ${TB}failed${TN} for $BACKEND" + echo ">>>>> $BCMD ${TB}failed${TN} for $BACKEND after $(( $END - $START )) seconds" FAILCOUNT=`expr $FAILCOUNT + 1` if [ -n "$NOEXIT" ]; then