Skip to content

Commit

Permalink
GHA: Adjust timeout handling
Browse files Browse the repository at this point in the history
* Extends the timeout from 5 min to 10 min.
  (Sometimes, it takes longer time.)
* Show the timeout message after showing the log.
* Return 1 when it timed out.
  • Loading branch information
k-takata committed Aug 1, 2020
1 parent 3a53ec8 commit 41eb768
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,18 @@ jobs:
echo %COL_GREEN%Wait for vim tests to finish.%COL_RESET%
cd ..\src2\testdir
:: Wait about 5 minutes.
for /L %%i in (1,1,300) do (
:: Wait about 10 minutes.
for /L %%i in (1,1,600) do (
if exist done.txt goto exitloop
ping -n 2 localhost > nul
)
echo %COL_RED%Timed out.%COL_RESET%
set timeout=1
:exitloop
echo %COL_GREEN%Test results of vim:%COL_RESET%
if exist messages type messages
nmake -nologo -f Make_dos.mak report VIMPROG=..\..\src\vim || exit 1
if "%timeout%"=="1" (
echo %COL_RED%Timed out.%COL_RESET%
exit 1
)

0 comments on commit 41eb768

Please sign in to comment.