Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 77013d1

Browse files
committed
Cirrus-CI: add some timing info on pkg install failure
Sponsored by: The FreeBSD Foundation
1 parent c51e496 commit 77013d1

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.cirrus-ci/pkg-install.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
#!/bin/sh
22
set -e
33

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

67
cat <<EOF
7-
pkg install failed
8+
pkg install failed after $(($(date +%s) - $start_time))s
89
910
dmesg tail:
1011
$(dmesg | tail)
1112
1213
trying again
1314
EOF
1415

15-
pkg install -y "$@"
16+
start_time=$(date +%s)
17+
pkg install -y "$@" && exit 0
18+
19+
cat <<EOF
20+
second pkg install failed after $(($(date +%s) - $start_time))s
21+
EOF
22+
exit 1

0 commit comments

Comments
 (0)