File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -528,8 +528,8 @@ jobs:
528
528
STATISTICS_SCRIPT : |
529
529
summary_line=$(tail -n1 test-te.log)
530
530
errors=$(echo $summary_line | grep -oE '[0-9]+ error' | awk '{print $1} END { if (!NR) print 0}')
531
- passed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport" and .outcome == "passed") | .outcome' | wc -l)
532
- failed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport" and .outcome == "failed") | .outcome' | wc -l)
531
+ passed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport" and .when == "call" and . outcome == "passed") | .outcome' | wc -l)
532
+ failed_tests=$(cat pytest-report.jsonl | jq -r 'select(."$report_type" == "TestReport" and .when == "call" and . outcome == "failed") | .outcome' | wc -l)
533
533
total_tests=$((failed_tests + passed_tests))
534
534
echo "TOTAL_TESTS=${total_tests}" >> $GITHUB_OUTPUT
535
535
echo "ERRORS=${errors}" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments