From 03450c69a0d045530339038c36b02c5966d9c888 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 27 Mar 2023 21:48:43 +0200 Subject: [PATCH] show what the runner is about while waiting for the result --- testdata/run.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }