show the full logs in a separate step for forensic analysis

This commit is contained in:
Twenty Panda 2024-03-17 21:19:13 +01:00
parent b563e5cd19
commit 81eebc10d8
2 changed files with 13 additions and 0 deletions

View file

@ -46,6 +46,9 @@ jobs:
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: ./.forgejo/prepare-end-to-end
- run: su forgejo -c "./end-to-end.sh test_packages"
- name: full logs
if: always()
run: su forgejo -c "./end-to-end.sh show_logs"
upgrade:
name: upgrade and storage
@ -70,3 +73,6 @@ jobs:
- uses: ./.forgejo/prepare-end-to-end
- run: su forgejo -c "./end-to-end.sh test_upgrades"
- run: su forgejo -c "./end-to-end.sh test_storage"
- name: full logs
if: always()
run: su forgejo -c "./end-to-end.sh show_logs"

View file

@ -298,6 +298,13 @@ function stop() {
cleanup_logs
}
function show_logs() {
(
cd $DIR
grep '' *.out
)
}
function run() {
local fun=$1
shift