From b6e122816daa84ab06f2163ba29d788c67754c7c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Mon, 17 Aug 2026 20:15:55 -0400 Subject: [PATCH] d/tests: Re-arrange test steps to help with debugging Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- debian/tests/access-web-interface | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/tests/access-web-interface b/debian/tests/access-web-interface index 9facb9640..dce79088a 100644 --- a/debian/tests/access-web-interface +++ b/debian/tests/access-web-interface @@ -22,17 +22,17 @@ for _ in $(seq 1 120); do done # Print final status in test log -cat /tmp/fbx_status.json +cat /tmp/fbx_status.json || true rm -f /tmp/fbx_status.json -if [ "$SETUP_COMPLETE" -eq 0 ]; then - echo "Error: first-boot setup did not complete in the allotted time." >&2 - exit 1 -fi - journalctl --unit=plinth --unit=freedombox-privileged # Access FreedomBox interface curl --location --cookie "" --fail --write-out "%{response_code}" --insecure \ --stderr - https://localhost/freedombox/ + +if [ "$SETUP_COMPLETE" -eq 0 ]; then + echo "Error: first-boot setup did not complete in the allotted time." >&2 + exit 1 +fi