Skip to content

Commit

Permalink
Cirrus-CI: add some timing info on pkg install failure
Browse files Browse the repository at this point in the history
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
emaste committed Aug 4, 2021
1 parent c51e496 commit 77013d1
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .cirrus-ci/pkg-install.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
#!/bin/sh
set -e

start_time=$(date +%s)
pkg install -y "$@" && exit 0

cat <<EOF
pkg install failed
pkg install failed after $(($(date +%s) - $start_time))s
dmesg tail:
$(dmesg | tail)
trying again
EOF

pkg install -y "$@"
start_time=$(date +%s)
pkg install -y "$@" && exit 0

cat <<EOF
second pkg install failed after $(($(date +%s) - $start_time))s
EOF
exit 1

0 comments on commit 77013d1

Please sign in to comment.