show what the runner is about while waiting for the result

This commit is contained in:
Earl Warren 2023-03-27 21:48:43 +02:00
parent e9c25f1577
commit 03450c69a0
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

4
testdata/run.sh vendored
View file

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