]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6301: make hash size independent
authorbrian m. carlson <sandals@crustytoothpaste.net>
Wed, 29 Jul 2020 23:13:56 +0000 (23:13 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Jul 2020 16:16:46 +0000 (09:16 -0700)
Instead of hard-coding a fixed length example object ID in the test,
compute one using the translation tables.  Move a variable into the
setup block so that we can ensure the exit status of test_oid is
checked.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6301-for-each-ref-errors.sh

index 49cc65bb58dd2b81de8f6eebd39ed1649752709d..809854fc0ce98e16d8d4faa1ae22715134293c84 100755 (executable)
@@ -5,9 +5,9 @@ test_description='for-each-ref errors for broken refs'
 . ./test-lib.sh
 
 ZEROS=$ZERO_OID
-MISSING=abababababababababababababababababababab
 
 test_expect_success setup '
+       MISSING=$(test_oid deadbeef) &&
        git commit --allow-empty -m "Initial" &&
        git tag testtag &&
        git for-each-ref >full-list &&