From 061bd455faad138ca1aefeb73be534198a4e0a44 Mon Sep 17 00:00:00 2001 From: Sho Sakuma Date: Tue, 20 Jan 2026 21:04:44 +0900 Subject: ci(test): Fix Result pasing --- .github/scripts/post-test-results.sh | 45 +++++++++++++++++------------------- 1 file changed, 21 insertions(+), 24 deletions(-) (limited to '.github') diff --git a/.github/scripts/post-test-results.sh b/.github/scripts/post-test-results.sh index a973db9..f8fbdf2 100755 --- a/.github/scripts/post-test-results.sh +++ b/.github/scripts/post-test-results.sh @@ -3,39 +3,36 @@ set -e MARKER="" -TEST_RESULTS_DIR="build/test-results/test" TOTAL_TESTS=0 PASSED_TESTS=0 FAILED_TESTS=0 SKIPPED_TESTS=0 FAILED_TEST_NAMES="" -if [ -d "$TEST_RESULTS_DIR" ]; then - for xml_file in "$TEST_RESULTS_DIR"/*.xml; do - if [ -f "$xml_file" ]; then - tests=$(sed -n 's/.*tests="\([0-9]*\)".*/\1/p' "$xml_file" | head -n1) - failures=$(sed -n 's/.*failures="\([0-9]*\)".*/\1/p' "$xml_file" | head -n1) - skipped=$(sed -n 's/.*skipped="\([0-9]*\)".*/\1/p' "$xml_file" | head -n1) - - tests=${tests:-0} - failures=${failures:-0} - skipped=${skipped:-0} - - TOTAL_TESTS=$((TOTAL_TESTS + tests)) - FAILED_TESTS=$((FAILED_TESTS + failures)) - SKIPPED_TESTS=$((SKIPPED_TESTS + skipped)) - - if [ "$failures" -gt 0 ]; then - failed_names=$(sed -n 's/.*