diff options
author | Chris Evich <cevich@redhat.com> | 2019-01-10 12:00:45 -0500 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-01-10 12:59:55 -0500 |
commit | 4e7a7ffe9d73797110f47ac57a39ce02c95e5152 (patch) | |
tree | 237ed6a7c75c92c0e5ef04726c785c1b3d4e2f78 /contrib/cirrus/lib.sh | |
parent | 148b4920dc9d866ce60654498af6e6bbc1d72f09 (diff) | |
download | podman-4e7a7ffe9d73797110f47ac57a39ce02c95e5152.tar.gz podman-4e7a7ffe9d73797110f47ac57a39ce02c95e5152.tar.bz2 podman-4e7a7ffe9d73797110f47ac57a39ce02c95e5152.zip |
(Minor) Cirrus: Print timestamp at start
Also record into a file in case a later reference is required
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/lib.sh')
-rw-r--r-- | contrib/cirrus/lib.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh index 9e9639223..d50c1e1a3 100644 --- a/contrib/cirrus/lib.sh +++ b/contrib/cirrus/lib.sh @@ -17,6 +17,7 @@ PACKER_BASE=${PACKER_BASE:-./contrib/cirrus/packer} CIRRUS_BUILD_ID=${CIRRUS_BUILD_ID:-DEADBEEF} # a human CIRRUS_BASE_SHA=${CIRRUS_BASE_SHA:-HEAD} CIRRUS_CHANGE_IN_REPO=${CIRRUS_CHANGE_IN_REPO:-FETCH_HEAD} +START_STAMP_FILEPATH="${START_STAMP_FILEPATH:-/var/tmp/start.timestamp}" if ! [[ "$PATH" =~ "/usr/local/bin" ]] then @@ -135,6 +136,13 @@ ircmsg() { set -e } +start_timestamp() { + req_env_var "START_STAMP_FILEPATH $START_STAMP_FILEPATH" + [[ -r "$START_STAMP_FILEPATH" ]] || \ + echo -e ".\nThe time at the tone will be:\n$(date --iso-8601=seconds | \ + tee $START_STAMP_FILEPATH)\nBLEEEEEEEEEEP!\n.\n" # Cirrus strips blank lines from output +} + # Run sudo in directory with GOPATH set cdsudo() { DIR="$1" |