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:
Shang Chieh Tseng
2025-12-17 00:00:24 +08:00
parent 11329c5ee8
commit ce2882b757
2 changed files with 5 additions and 29 deletions

View File

@@ -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