From 7124ef71b566bbcdf0faa77961e90ab6ff0f03c5 Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Thu, 17 Jan 2019 14:04:24 -0500 Subject: cirrus: Record start/end time of important things Previously we only reported the date/time at the beginning of a run since it's not available in the Cirrus-CI system. This commit generalizes the solution, recording start/end times for all major events. Also the timestamps are recorded into a local file on the VMs. This is intended for future use, for example tracking execution-time trends. Signed-off-by: Chris Evich --- contrib/cirrus/unit_test.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/cirrus/unit_test.sh') diff --git a/contrib/cirrus/unit_test.sh b/contrib/cirrus/unit_test.sh index 61d9dc73d..15403b7a7 100755 --- a/contrib/cirrus/unit_test.sh +++ b/contrib/cirrus/unit_test.sh @@ -9,6 +9,8 @@ OS_RELEASE_ID $OS_RELEASE_ID OS_RELEASE_VER $OS_RELEASE_VER " +record_timestamp "unit test start" + clean_env set -x @@ -29,3 +31,5 @@ case "${OS_RELEASE_ID}-${OS_RELEASE_VER}" in ;; *) bad_os_id_ver ;; esac + +record_timestamp "unit test end" -- cgit v1.2.3-54-g00ecf