Skip to content

Commit b96d70d

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 b96d70d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: .ci/autorun.sh

+8-1
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" ]]
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)