Skip to content

Commit d05f395

Browse files
committed
Select appropriate timeout for each Github runner
Testing shows 600 seconds is sufficient to boot Linux on macOS runners, while 90 seconds works for Linux runners. This commit sets the timeout for each platform accordingly. The varying timeout requirements will be tracked in an issue.
1 parent e438c1b commit d05f395

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.ci/autorun.sh

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,18 @@ function ASSERT {
1616

1717
cleanup
1818

19+
# macOS needs more time to boot compared to Linux, so the timeout is set to
20+
# 600 seconds for macOS to handle the longer startup. For Linux, 90 seconds
21+
# is sufficient due to its faster boot process.
22+
UNAME_S=$(uname -s)
23+
if [[ ${UNAME_S} == "Darwin" ]]; then
24+
TIMEOUT=600
25+
else # Linux
26+
TIMEOUT=90
27+
fi
28+
1929
ASSERT expect <<DONE
20-
set timeout 90
30+
set timeout ${TIMEOUT}
2131
spawn make check
2232
expect "buildroot login:" { send "root\n" } timeout { exit 1 }
2333
expect "# " { send "uname -a\n" } timeout { exit 2 }

0 commit comments

Comments
 (0)