mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-21 21:26:59 +00:00
Fix runtime test log checks that require model loading
- Remove CUDA initialization checks from TC-RUNTIME-002 (ggml_cuda_init, load_backend only appear when a model is loaded, not at startup) - Fix bash integer comparison error in TC-RUNTIME-003 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,8 +52,8 @@ steps:
|
||||
echo "=== Runtime Error Check ==="
|
||||
|
||||
# Check for any ERROR level logs
|
||||
ERROR_COUNT=$(echo "$LOGS" | grep -c "level=ERROR" || echo "0")
|
||||
if [ "$ERROR_COUNT" -gt 0 ]; then
|
||||
ERROR_COUNT=$(echo "$LOGS" | grep -c "level=ERROR" || true)
|
||||
if [ -n "$ERROR_COUNT" ] && [ "$ERROR_COUNT" -gt 0 ] 2>/dev/null; then
|
||||
echo "WARNING: Found $ERROR_COUNT ERROR level log entries:"
|
||||
echo "$LOGS" | grep "level=ERROR" | tail -5
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user