Merge branch 'fix/early-ci-timeout' into 'main'
Fix/early ci timeout See merge request kernel-panic/revival!6
This commit is contained in:
commit
8388f7fd3e
10
ci/build.sh
10
ci/build.sh
|
@ -22,9 +22,19 @@ open -g $editorpath --args \
|
||||||
-projectPath "$(pwd)/game"
|
-projectPath "$(pwd)/game"
|
||||||
|
|
||||||
# wait for editor log to exist
|
# wait for editor log to exist
|
||||||
|
tries=30
|
||||||
|
count=0
|
||||||
while [ ! -f $editorlogpath ]
|
while [ ! -f $editorlogpath ]
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
|
# decrement
|
||||||
|
count=`expr $count + 1`
|
||||||
|
|
||||||
|
if [ $count -eq $tries ] ; then
|
||||||
|
exit "early timeout - $tries seconds elapsed since launch attempt"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# use a safe directory that is automatically removed by the shell when the script exists
|
# use a safe directory that is automatically removed by the shell when the script exists
|
||||||
|
|
Loading…
Reference in New Issue