@matheusbsbs / matheus-bagliano / commits / a79eec220b
Fork 0

t5309: make test hash independent

Use the proper pack constants defined in lib-pack.sh to make this test work with SHA-256. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Feb 7, 2020 at 00:52 UTC a79eec220b59a061cf94b3f3842ed7c20c13e579
1 file changed +2 -8
t/t5309-pack-delta-cycles.sh
+2 -8
@@ -4,15 +4,9 @@ test_description='test index-pack handling of delta cycles in packfiles'
4 . ./test-lib.sh
5 . "$TEST_DIRECTORY"/lib-pack.sh
6
7 -if ! test_have_prereq SHA1
8 -then
9 - skip_all='not using SHA-1 for objects'
10 - test_done
11 -fi
12 -
7 # Two similar-ish objects that we have computed deltas between.
14 -A=01d7713666f4de822776c7622c10f1b07de280dc
15 -B=e68fe8129b546b101aee9510c5328e7f21ca1d18
8 +A=$(test_oid packlib_7_0)
9 +B=$(test_oid packlib_7_76)
10
11 # double-check our hand-constucted packs
12 test_expect_success 'index-pack works with a single delta (A->B)' '