From c92f71514c54641340b7c11f95357a9a4d35b27e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 8 Feb 2024 21:04:12 -0300 Subject: Cut down some of the waiting times during CI tests. If it works, CI performance will be greatly improved. --- tools/ci/scripts/runtest.sh | 8 ++++---- tools/ci/scripts/runtests.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'tools') diff --git a/tools/ci/scripts/runtest.sh b/tools/ci/scripts/runtest.sh index 4b0320fed..e629fc514 100755 --- a/tools/ci/scripts/runtest.sh +++ b/tools/ci/scripts/runtest.sh @@ -53,7 +53,7 @@ function run { ./src/manaplus --hide-cursor --enable-ipc --renderer=0 >logs/run.log 2>&1 & export PID=$! echo "manaplus PID: ${PID}" - sleep 20 + sleep 15 echo "pause after run" wait_for_servers_list check_assert @@ -89,21 +89,21 @@ function final_log { function send_command { echo -n "$1" | nc 127.0.0.1 44007 - sleep 7 + sleep 5 check_is_run check_assert } function check_exists { if [ ! -f "logs/home/Desktop/ManaPlus/$1" ]; then - sleep 10 + sleep 7 if [ ! -f "logs/home/Desktop/ManaPlus/$1" ]; then echo "Error: image $1 not exists" exit 1 fi fi if [ ! -f "logs/home/Desktop/ManaPlus/$2" ]; then - sleep 10 + sleep 7 if [ ! -f "logs/home/Desktop/ManaPlus/$2" ]; then echo "Error: image $2 not exists" exit 1 diff --git a/tools/ci/scripts/runtests.sh b/tools/ci/scripts/runtests.sh index 9f0a6729f..1263521f9 100755 --- a/tools/ci/scripts/runtests.sh +++ b/tools/ci/scripts/runtests.sh @@ -32,7 +32,7 @@ while true; do if [ "$?" != 0 ]; then exit 1 fi - if [[ $n -ge 3 ]]; then + if [[ $n -ge 2 ]]; then # Do a second test just to be on the safe side break fi sleep 5 -- cgit v1.2.3-70-g09d2