diff --git a/testdata/run.sh b/testdata/run.sh index b8824d1..4b66810 100755 --- a/testdata/run.sh +++ b/testdata/run.sh @@ -2,6 +2,7 @@ set -ex +: ${FORGEJO_RUNNER_LOGS:=forgejo-runner.log} DATA=$(dirname $0) DIR=$(mktemp -d) @@ -29,10 +30,11 @@ function wait_success() { if check_status "$forgejo" "$repo" "$sha"; then break fi + tail $FORGEJO_RUNNER_LOGS sleep 5 done if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then - cat forgejo-runner.log + cat $FORGEJO_RUNNER_LOGS return 1 fi }