修复测试结果检查的语法错误
All checks were successful
autograde-final-vibevault / check-trigger (push) Successful in 9s
autograde-final-vibevault / grade (push) Has been skipped

This commit is contained in:
liyitian 2025-12-14 20:55:39 +08:00
parent 85ae69a3ef
commit 5a343fc2b2

View File

@ -190,9 +190,10 @@ jobs:
# Collect all JUnit XML reports
find build/test-results/test -name "TEST-*.xml" -exec cat {} \; > all_tests.xml 2>/dev/null || true
# Also try to get a single combined report
if [ -f build/test-results/test/TEST-*.xml ]; then
cp build/test-results/test/TEST-*.xml junit.xml 2>/dev/null || true
# Also try to get a single combined report - use ls to check if any test files exist
if ls build/test-results/test/TEST-*.xml 1> /dev/null 2>&1; then
# If multiple files exist, just copy the first one
cp $(ls -1 build/test-results/test/TEST-*.xml | head -1) junit.xml 2>/dev/null || true
fi
- name: Grade programming tests