diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-08-01 09:10:49 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-08-01 09:10:49 -0700 |
commit | a7b27d9e6d1071ff61a0263a87fac441b8dff11b (patch) | |
tree | a0a7f701e74edc6cc5d68fa62794f7be44f30fe1 /t/t0027-auto-crlf.sh | |
parent | RelNotes/2.23.0: fix a few typos and other minor issues (diff) | |
parent | t2203: avoid hard-coded object ID values (diff) | |
download | tgif-a7b27d9e6d1071ff61a0263a87fac441b8dff11b.tar.xz |
Merge branch 'bc/hash-independent-tests-part-4'
Update to the tests to help SHA-256 transition continues.
* bc/hash-independent-tests-part-4:
t2203: avoid hard-coded object ID values
t1710: make hash independent
t1007: remove SHA1 prerequisites
t0090: make test pass with SHA-256
t0027: make hash size independent
t6030: make test work with SHA-256
t5000: make hash independent
t1450: make hash size independent
t1410: make hash size independent
t: add helper to convert object IDs to paths
Diffstat (limited to 't/t0027-auto-crlf.sh')
-rwxr-xr-x | t/t0027-auto-crlf.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/t0027-auto-crlf.sh b/t/t0027-auto-crlf.sh index 3587e454f1..959b6da449 100755 --- a/t/t0027-auto-crlf.sh +++ b/t/t0027-auto-crlf.sh @@ -15,8 +15,10 @@ compare_ws_file () { pfx=$1 exp=$2.expect act=$pfx.actual.$3 - tr '\015\000abcdef0123456789' QN00000000000000000 <"$2" >"$exp" && - tr '\015\000abcdef0123456789' QN00000000000000000 <"$3" >"$act" && + tr '\015\000abcdef0123456789' QN00000000000000000 <"$2" | + sed -e "s/0000*/$ZERO_OID/" >"$exp" && + tr '\015\000abcdef0123456789' QN00000000000000000 <"$3" | + sed -e "s/0000*/$ZERO_OID/" >"$act" && test_cmp "$exp" "$act" && rm "$exp" "$act" } |