From 370dd428291d778a3228d0561a9def0a25031d15 Mon Sep 17 00:00:00 2001 From: Radek Cap Date: Fri, 5 Jan 2024 11:53:44 +0100 Subject: [PATCH 1/4] Add timeout when waiting for process to appear --- tests/testlib.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testlib.bash b/tests/testlib.bash index 2c7ef7c..d0d6364 100644 --- a/tests/testlib.bash +++ b/tests/testlib.bash @@ -222,7 +222,7 @@ function resolveBg() { ps | grep "$pid" # to die if process do nto start # shellcheck disable=SC2166 if [ "x$TTL" = "x" -o "x$TTL" = "x0" ] ; then - wait "$pid" + wait -t 60 "$pid" else sleep "$TTL" import -window root "$REPORT_DIR"/$cname-02.png From 64c81f835862e056470ee054946b92ccca75f18e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C4=8C=C3=A1p?= <6508800+RadekCap@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:27:40 +0100 Subject: [PATCH 2/4] Update testlib.bash --- tests/testlib.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testlib.bash b/tests/testlib.bash index d0d6364..1b7476a 100644 --- a/tests/testlib.bash +++ b/tests/testlib.bash @@ -222,7 +222,7 @@ function resolveBg() { ps | grep "$pid" # to die if process do nto start # shellcheck disable=SC2166 if [ "x$TTL" = "x" -o "x$TTL" = "x0" ] ; then - wait -t 60 "$pid" + timeout 60 wait "$pid" else sleep "$TTL" import -window root "$REPORT_DIR"/$cname-02.png From 76c1a8a59efad8e06433c6f7688a96dab5588ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C4=8C=C3=A1p?= <6508800+RadekCap@users.noreply.github.com> Date: Wed, 10 Jan 2024 14:29:58 +0100 Subject: [PATCH 3/4] Update test.yaml --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 289fdf8..503cd54 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -10,6 +10,7 @@ jobs: test: name: "Linux" runs-on: "ubuntu-latest" + timeout-minutes: 30 strategy: fail-fast: false matrix: From 09214b16e384c55b34b0daec3bbf1438dcd54ae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20=C4=8C=C3=A1p?= <6508800+RadekCap@users.noreply.github.com> Date: Wed, 10 Jan 2024 16:33:09 +0100 Subject: [PATCH 4/4] Update test.yaml --- .github/workflows/test.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 503cd54..379078a 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -41,6 +41,7 @@ jobs: run: | cd wrapper export BINARY_FOLDER=/usr/bin/java + export TTL=60 ./run.sh