From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Dmitry Fomichev Subject: [PATCH v3 36/38] t/zbd: show elapsed time in test-zbd-support Date: Thu, 7 Jan 2021 06:57:37 +0900 Message-Id: <20210106215739.264524-37-dmitry.fomichev@wdc.com> In-Reply-To: <20210106215739.264524-1-dmitry.fomichev@wdc.com> References: <20210106215739.264524-1-dmitry.fomichev@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: Jens Axboe , fio@vger.kernel.org, Aravind Ramesh , Bart Van Assche , Naohiro Aota , Niklas Cassel Cc: Damien Le Moal , Shinichiro Kawasaki , Dmitry Fomichev List-ID: This script may take quite a lot of time to run against large zoned HDDs. At the end of every run, show exactly how much time it took. Signed-off-by: Dmitry Fomichev --- t/zbd/test-zbd-support | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/zbd/test-zbd-support b/t/zbd/test-zbd-support index 0230f1af..f9427981 100755 --- a/t/zbd/test-zbd-support +++ b/t/zbd/test-zbd-support @@ -1153,6 +1153,7 @@ test54() { >> "${logfile}.${test_number}" 2>&1 || return $? } +SECONDS=0 tests=() dynamic_analyzer=() reset_all_zones= @@ -1346,4 +1347,5 @@ fi if [ $failed -gt 0 ]; then echo " $failed tests failed" fi +echo "Run time: $(TZ=UTC0 printf "%(%H:%M:%S)T\n" $(( SECONDS )) )" exit $rc -- 2.28.0