mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
Cirrus-CI: add some timing info on pkg install failure
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c51e4962a3
commit
77013d11e6
@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
start_time=$(date +%s)
|
||||||
pkg install -y "$@" && exit 0
|
pkg install -y "$@" && exit 0
|
||||||
|
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
pkg install failed
|
pkg install failed after $(($(date +%s) - $start_time))s
|
||||||
|
|
||||||
dmesg tail:
|
dmesg tail:
|
||||||
$(dmesg | tail)
|
$(dmesg | tail)
|
||||||
@ -12,4 +13,10 @@ $(dmesg | tail)
|
|||||||
trying again
|
trying again
|
||||||
EOF
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user