Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nuwan-samarasinghe committed Feb 19, 2025
1 parent 5fec48c commit 586930f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/copilot_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ jobs:
tests_in_file=$(xmllint --xpath 'string(//*[local-name()='\''testsuite'\''][2]/@tests)' "./$file" -o 2>/dev/null)
failures=$(xmllint --xpath 'string(//testsuite[2]/@failures)' "./$file" -o 2>/dev/null)
if [ "$failures" -eq 0 ]; then
failures="Passed"
else
failures="Failed"
fi
status="Passed"
[ "$failures" -gt 0 ] && status="Failed"
total_tests=$((tests_in_file + total_tests))
tests_in_file=${tests_in_file:-0}
tests_in_file=$((tests_in_file + 0))
total_tests=$((total_tests + tests_in_file))

printf "| %-60s | %-19s | %-19s |\n" "$file_name" "$tests_in_file" "$failures"
done
Expand Down

0 comments on commit 586930f

Please sign in to comment.