summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2019-01-17 14:04:24 -0500
committerChris Evich <cevich@redhat.com>2019-01-17 14:32:28 -0500
commit7124ef71b566bbcdf0faa77961e90ab6ff0f03c5 (patch)
tree609c584419393044331b48d39ad788b243171586 /contrib/cirrus/setup_environment.sh
parent0e3264ae4de85d2c974106582f80fd8cadab8bb8 (diff)
downloadpodman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.tar.gz
podman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.tar.bz2
podman-7124ef71b566bbcdf0faa77961e90ab6ff0f03c5.zip
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 <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index 5899dca2d..bcfe7e396 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -4,7 +4,7 @@ set -e
source $(dirname $0)/lib.sh
-start_timestamp
+record_timestamp "env. setup start"
req_env_var "
USER $USER
@@ -85,3 +85,5 @@ then
# Only testing-VMs need deps installed
[[ -n "$PACKER_BUILDS" ]] || install_testing_dependencies # must exist in $GOPATH
fi
+
+record_timestamp "env. setup end"