generated from Java-2025Fall/final-vibevault-template
修复测试结果检查的语法错误
This commit is contained in:
parent
85ae69a3ef
commit
5a343fc2b2
@ -190,9 +190,10 @@ jobs:
|
|||||||
# Collect all JUnit XML reports
|
# Collect all JUnit XML reports
|
||||||
find build/test-results/test -name "TEST-*.xml" -exec cat {} \; > all_tests.xml 2>/dev/null || true
|
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
|
# Also try to get a single combined report - use ls to check if any test files exist
|
||||||
if [ -f build/test-results/test/TEST-*.xml ]; then
|
if ls build/test-results/test/TEST-*.xml 1> /dev/null 2>&1; then
|
||||||
cp build/test-results/test/TEST-*.xml junit.xml 2>/dev/null || true
|
# 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
|
fi
|
||||||
|
|
||||||
- name: Grade programming tests
|
- name: Grade programming tests
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user