diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 289fdf8..379078a 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: @@ -40,6 +41,7 @@ jobs: run: | cd wrapper export BINARY_FOLDER=/usr/bin/java + export TTL=60 ./run.sh diff --git a/tests/testlib.bash b/tests/testlib.bash index 2c7ef7c..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 "$pid" + timeout 60 wait "$pid" else sleep "$TTL" import -window root "$REPORT_DIR"/$cname-02.png