Skip to content

Commit

Permalink
fix potential errors with multiline testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahkm committed Jan 28, 2025
1 parent f878035 commit be9e080
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/add-codeowners/codeowners.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for file in "$@"; do
if [[ "$p" =~ \<testcase && ! "$p" =~ "file=" ]]; then
class=$(echo "$p" | grep -o '.v1/[^"]*"')
file_name=$(echo "${class:3}" | sed 's/.$//') # trim off the edges to get the path
new_line=$(echo "$p" | sed "s|></testcase>| file=\"$file_name\"></testcase>|")
new_line=$(echo "$p" | sed "s|<testcase \([^>]*\)>|<testcase \1 file=\"$file_name\">|")
echo "$new_line" >> "$temp_file"
else
echo "$p" >> "$temp_file"
Expand Down

0 comments on commit be9e080

Please sign in to comment.