Skip to content

Commit

Permalink
fixup! t9390: add disgusting hack to --analyze test so it works with …
Browse files Browse the repository at this point in the history
…zlib-ng
  • Loading branch information
newren committed Oct 21, 2024
1 parent cd14700 commit 57ef1f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/t9390-filter-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -760,10 +760,10 @@ test_expect_success C_LOCALE_OUTPUT '--analyze' '
# Detect whether zlib or zlib-ng are in use; they give
# slightly different compression
echo 381b8743234c0a1bddf389d037881a19cc468edb >expect &&
python -c "print((\"test\"+chr(10)) * 1000, end=\"\")" | git hash-object -w --stdin >actual &&
echo e80fdf8cd5fb645649c14f41656a076dedc4e12a >expect &&
python -c "print(\"test\\t\" * 1000, end=\"\")" | git hash-object -w --stdin >actual &&
test_cmp expect actual &&
compressed_size=$(python -c "import os; print(os.path.getsize(\".git/objects/38/1b8743234c0a1bddf389d037881a19cc468edb\"))") &&
compressed_size=$(python -c "import os; print(os.path.getsize(\".git/objects/e8/0fdf8cd5fb645649c14f41656a076dedc4e12a\"))") &&
zlibng=$((72-${compressed_size})) &&
test $zlibng -eq "0" -o $zlibng -eq "2" &&
Expand Down

0 comments on commit 57ef1f5

Please sign in to comment.