Skip to content

Commit

Permalink
binaries: include 'gleam__' prefix in test names to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed Jan 20, 2025
1 parent 84d17b2 commit df53d2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/glistix-fix-test-names.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ ANSI_END=$'\e[0m'
echo "${ANSI_BOLD}=== Replacing 'gleam_core__' with 'glistix_core__' in test snapshot names ===${ANSI_END}" >&2

curr_dir=""
files=$(find . -name 'gleam_core__*.snap')
files=$(find . -name 'gleam_core__*.snap' -o -name 'gleam__*.snap')
IFS=$'\n'
for i in ${files}
do
# Replace the prefix
newname="$(echo "$i" | sed -Ee 's;(^|/)gleam_core__;\1glistix_core__;')"
newname="$(echo "$i" | sed -Ee 's;(^|/)gleam_core__;\1glistix_core__;' | sed -Ee 's;(^|/)gleam__;\1glistix__;')"

# --- Display info ---
dir="$(dirname "$i")"
Expand Down

0 comments on commit df53d2f

Please sign in to comment.