From bec070b1b548ddf5445b955ff3de247b3759af6c Mon Sep 17 00:00:00 2001 From: Dillard Blom Date: Mon, 12 Oct 2026 17:15:25 +0200 Subject: [PATCH] Full-restore test: show the output and the log when restore:full fails --- tests/integration/full-restore-roundtrip.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/integration/full-restore-roundtrip.sh b/tests/integration/full-restore-roundtrip.sh index 7900f0c..9e98449 100755 --- a/tests/integration/full-restore-roundtrip.sh +++ b/tests/integration/full-restore-roundtrip.sh @@ -68,7 +68,11 @@ run_on ngb-frt-restore backup:target:add offsite local -a null::null -o datadir= run_on ngb-frt-restore backup:list offsite | grep -q "$SNAP" || fail "the origin's snapshot is not listed after connecting the location" ok "recovery kit imported, existing repository adopted, snapshot visible" -run_on ngb-frt-restore backup:restore:full offsite "$SNAP" --no-interaction >/dev/null || fail "restore:full" +OUT=$(run_on ngb-frt-restore backup:restore:full offsite "$SNAP" --no-interaction 2>&1) || { + printf '%s\n' "$OUT" | tail -40 + docker exec ngb-frt-restore sh -c 'tail -c 6000 /var/www/html/data/nextcloud.log' || true + fail "restore:full" +} ok "backup:restore:full completed" # Everything below must work in a FRESH occ process (a new PHP process per docker exec), since