From 57ef1f567b5e9483783e0658d313b06ce3139639 Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Mon, 21 Oct 2024 10:16:08 -0700 Subject: [PATCH] fixup! t9390: add disgusting hack to --analyze test so it works with zlib-ng --- t/t9390-filter-repo.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/t9390-filter-repo.sh b/t/t9390-filter-repo.sh index 22c55665..4a54067f 100755 --- a/t/t9390-filter-repo.sh +++ b/t/t9390-filter-repo.sh @@ -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" &&