Skip to content

Commit 10245c8

Browse files
committed
Select appropriate timeout for each Github runner
Testing shows 600 seconds is needed to boot Linux on macOS runners, while 90 seconds works for Linux runners. This commit sets the timeout for each platform accordingly.
1 parent e438c1b commit 10245c8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.ci/autorun.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,15 @@ function ASSERT {
1616

1717
cleanup
1818

19+
UNAME_S=$(uname -s)
20+
if [[ ${UNAME_S} == "Darwin" ]]; then
21+
TIMEOUT=600
22+
else # Linux
23+
TIMEOUT=90
24+
fi
25+
1926
ASSERT expect <<DONE
20-
set timeout 90
27+
set timeout ${TIMEOUT}
2128
spawn make check
2229
expect "buildroot login:" { send "root\n" } timeout { exit 1 }
2330
expect "# " { send "uname -a\n" } timeout { exit 2 }

0 commit comments

Comments
 (0)