Skip to content

Commit

Permalink
fix(tests): Set right output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalvaro committed Aug 28, 2022
1 parent 4ed982b commit 41105c7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/patch-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ mkdir -p patched/
unzip -q "${FIRACODE_NERD_FONT_FILE_NAME}" -d patched/

while IFS='' read -r FONT; do
ttx -o custom_patched_font.xml "${INPUT_DIR}/${FONT}"
cat custom_patched_font.xml

ttx -o nerdfonts_patched_font.xml "$(pwd)/patched/${FONT}"
cat nerdfonts_patched_font.xml

diff custom_patched_font.xml nerdfonts_patched_font.xml
ttx --recalc-timestamp -o custom_patched_font.ttx "${OUTPUT_DIR}/${FONT}"
sed -E -i 's/.*<(checkSumAdjustment|modified|FFTimeStamp|sourceModified).*//g' custom_patched_font.ttx
ttx --recalc-timestamp -o nerdfonts_patched_font.ttx "$(pwd)/patched/${FONT}"
sed -E -i 's/.*<(checkSumAdjustment|modified|FFTimeStamp|sourceModified).*//g' nerdfonts_patched_font.ttx
diff custom_patched_font.ttx nerdfonts_patched_font.ttx
done < <(find "${OUTPUT_DIR}" -type f -iname '*.ttf' -exec basename {} \; 2>/dev/null)

popd

0 comments on commit 41105c7

Please sign in to comment.