t4044: skip test if not using SHA-1
This test relies on objects with colliding short names which are necessarily dependent on the hash used. Skip the test if we're not using SHA-1. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
brian m. carlson committed
May 13, 2018 at 02:24 UTC
bfb546f86c8b779ca9d288a1b95a6dad5ad636d5
1 file changed
+6
t/t4044-diff-index-unique-abbrev.sh
+6
@@ -3,6 +3,12 @@
3
test_description='test unique sha1 abbreviation on "index from..to" line'
4
. ./test-lib.sh
5
6
+if ! test_have_prereq SHA1
7
+then
8
+ skip_all='not using SHA-1 for objects'
9
+ test_done
10
+fi
11
+
12
cat >expect_initial <<EOF
13
100644 blob 51d2738463ea4ca66f8691c91e33ce64b7d41bb1 foo
14
EOF