File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -410,6 +410,21 @@ elif [ $exit_code -eq 5 ]; then
410410 echo " ⚠️ No tests collected (pattern matched no tests)"
411411else
412412 echo " ❌ Tests failed"
413+ echo " "
414+ echo " === Dumping last 100 lines of logs for debugging ==="
415+
416+ # Output server or container logs based on stack config
417+ if [[ " $STACK_CONFIG " == * " server:" * && -f " server.log" ]]; then
418+ echo " --- Last 100 lines of server.log ---"
419+ tail -100 server.log
420+ elif [[ " $STACK_CONFIG " == * " docker:" * ]]; then
421+ docker_log_file=" docker-${DISTRO} -${INFERENCE_MODE} .log"
422+ if [[ -f " $docker_log_file " ]]; then
423+ echo " --- Last 100 lines of $docker_log_file ---"
424+ tail -100 " $docker_log_file "
425+ fi
426+ fi
427+
413428 exit 1
414429fi
415430
You can’t perform that action at this time.
0 commit comments