@@ -1209,32 +1209,32 @@ append_signoff()
12091209
12101210test_expect_success ' signoff: commit with no body' '
12111211 append_signoff </dev/null >actual &&
1212- cat <<\EOF | sed "s/EOL$//" >expected &&
1212+ cat <<\EOF | sed "s/EOL$//" >expect &&
121312134:Subject: [PATCH] EOL
121412148:
121512159:Signed-off-by: C O Mitter <committer@example.com>
12161216EOF
1217- test_cmp expected actual
1217+ test_cmp expect actual
12181218'
12191219
12201220test_expect_success ' signoff: commit with only subject' '
12211221 echo subject | append_signoff >actual &&
1222- cat >expected <<\EOF &&
1222+ cat >expect <<\EOF &&
122312234:Subject: [PATCH] subject
122412248:
122512259:Signed-off-by: C O Mitter <committer@example.com>
12261226EOF
1227- test_cmp expected actual
1227+ test_cmp expect actual
12281228'
12291229
12301230test_expect_success ' signoff: commit with only subject that does not end with NL' '
12311231 printf subject | append_signoff >actual &&
1232- cat >expected <<\EOF &&
1232+ cat >expect <<\EOF &&
123312334:Subject: [PATCH] subject
123412348:
123512359:Signed-off-by: C O Mitter <committer@example.com>
12361236EOF
1237- test_cmp expected actual
1237+ test_cmp expect actual
12381238'
12391239
12401240test_expect_success ' signoff: no existing signoffs' '
@@ -1243,24 +1243,24 @@ subject
12431243
12441244body
12451245EOF
1246- cat >expected <<\EOF &&
1246+ cat >expect <<\EOF &&
124712474:Subject: [PATCH] subject
124812488:
1249124910:
1250125011:Signed-off-by: C O Mitter <committer@example.com>
12511251EOF
1252- test_cmp expected actual
1252+ test_cmp expect actual
12531253'
12541254
12551255test_expect_success ' signoff: no existing signoffs and no trailing NL' '
12561256 printf "subject\n\nbody" | append_signoff >actual &&
1257- cat >expected <<\EOF &&
1257+ cat >expect <<\EOF &&
125812584:Subject: [PATCH] subject
125912598:
1260126010:
1261126111:Signed-off-by: C O Mitter <committer@example.com>
12621262EOF
1263- test_cmp expected actual
1263+ test_cmp expect actual
12641264'
12651265
12661266test_expect_success ' signoff: some random signoff' '
@@ -1271,14 +1271,14 @@ body
12711271
12721272Signed-off-by: my@house
12731273EOF
1274- cat >expected <<\EOF &&
1274+ cat >expect <<\EOF &&
127512754:Subject: [PATCH] subject
127612768:
1277127710:
1278127811:Signed-off-by: my@house
1279127912:Signed-off-by: C O Mitter <committer@example.com>
12801280EOF
1281- test_cmp expected actual
1281+ test_cmp expect actual
12821282'
12831283
12841284test_expect_success ' signoff: misc conforming footer elements' '
@@ -1292,14 +1292,14 @@ Signed-off-by: my@house
12921292Tested-by: Some One <someone@example.com>
12931293Bug: 1234
12941294EOF
1295- cat >expected <<\EOF &&
1295+ cat >expect <<\EOF &&
129612964:Subject: [PATCH] subject
129712978:
1298129810:
1299129911:Signed-off-by: my@house
1300130015:Signed-off-by: C O Mitter <committer@example.com>
13011301EOF
1302- test_cmp expected actual
1302+ test_cmp expect actual
13031303'
13041304
13051305test_expect_success ' signoff: some random signoff-alike' '
@@ -1309,13 +1309,13 @@ subject
13091309body
13101310Fooled-by-me: my@house
13111311EOF
1312- cat >expected <<\EOF &&
1312+ cat >expect <<\EOF &&
131313134:Subject: [PATCH] subject
131413148:
1315131511:
1316131612:Signed-off-by: C O Mitter <committer@example.com>
13171317EOF
1318- test_cmp expected actual
1318+ test_cmp expect actual
13191319'
13201320
13211321test_expect_success ' signoff: not really a signoff' '
@@ -1324,14 +1324,14 @@ subject
13241324
13251325I want to mention about Signed-off-by: here.
13261326EOF
1327- cat >expected <<\EOF &&
1327+ cat >expect <<\EOF &&
132813284:Subject: [PATCH] subject
132913298:
133013309:I want to mention about Signed-off-by: here.
1331133110:
1332133211:Signed-off-by: C O Mitter <committer@example.com>
13331333EOF
1334- test_cmp expected actual
1334+ test_cmp expect actual
13351335'
13361336
13371337test_expect_success ' signoff: not really a signoff (2)' '
@@ -1341,13 +1341,13 @@ subject
13411341My unfortunate
13421342Signed-off-by: example happens to be wrapped here.
13431343EOF
1344- cat >expected <<\EOF &&
1344+ cat >expect <<\EOF &&
134513454:Subject: [PATCH] subject
134613468:
1347134710:Signed-off-by: example happens to be wrapped here.
1348134811:Signed-off-by: C O Mitter <committer@example.com>
13491349EOF
1350- test_cmp expected actual
1350+ test_cmp expect actual
13511351'
13521352
13531353test_expect_success ' signoff: valid S-o-b paragraph in the middle' '
@@ -1359,7 +1359,7 @@ Signed-off-by: your@house
13591359
13601360A lot of houses.
13611361EOF
1362- cat >expected <<\EOF &&
1362+ cat >expect <<\EOF &&
136313634:Subject: [PATCH] subject
136413648:
136513659:Signed-off-by: my@house
@@ -1368,7 +1368,7 @@ EOF
1368136813:
1369136914:Signed-off-by: C O Mitter <committer@example.com>
13701370EOF
1371- test_cmp expected actual
1371+ test_cmp expect actual
13721372'
13731373
13741374test_expect_success ' signoff: the same signoff at the end' '
@@ -1379,24 +1379,24 @@ body
13791379
13801380Signed-off-by: C O Mitter <committer@example.com>
13811381EOF
1382- cat >expected <<\EOF &&
1382+ cat >expect <<\EOF &&
138313834:Subject: [PATCH] subject
138413848:
1385138510:
1386138611:Signed-off-by: C O Mitter <committer@example.com>
13871387EOF
1388- test_cmp expected actual
1388+ test_cmp expect actual
13891389'
13901390
13911391test_expect_success ' signoff: the same signoff at the end, no trailing NL' '
13921392 printf "subject\n\nSigned-off-by: C O Mitter <committer@example.com>" |
13931393 append_signoff >actual &&
1394- cat >expected <<\EOF &&
1394+ cat >expect <<\EOF &&
139513954:Subject: [PATCH] subject
139613968:
139713979:Signed-off-by: C O Mitter <committer@example.com>
13981398EOF
1399- test_cmp expected actual
1399+ test_cmp expect actual
14001400'
14011401
14021402test_expect_success ' signoff: the same signoff NOT at the end' '
@@ -1408,14 +1408,14 @@ body
14081408Signed-off-by: C O Mitter <committer@example.com>
14091409Signed-off-by: my@house
14101410EOF
1411- cat >expected <<\EOF &&
1411+ cat >expect <<\EOF &&
141214124:Subject: [PATCH] subject
141314138:
1414141410:
1415141511:Signed-off-by: C O Mitter <committer@example.com>
1416141612:Signed-off-by: my@house
14171417EOF
1418- test_cmp expected actual
1418+ test_cmp expect actual
14191419'
14201420
14211421test_expect_success ' signoff: tolerate garbage in conforming footer' '
@@ -1428,13 +1428,13 @@ Tested-by: my@house
14281428Some Trash
14291429Signed-off-by: C O Mitter <committer@example.com>
14301430EOF
1431- cat >expected <<\EOF &&
1431+ cat >expect <<\EOF &&
143214324:Subject: [PATCH] subject
143314338:
1434143410:
1435143513:Signed-off-by: C O Mitter <committer@example.com>
14361436EOF
1437- test_cmp expected actual
1437+ test_cmp expect actual
14381438'
14391439
14401440test_expect_success ' signoff: respect trailer config' '
@@ -1444,13 +1444,13 @@ subject
14441444Myfooter: x
14451445Some Trash
14461446EOF
1447- cat >expected <<\EOF &&
1447+ cat >expect <<\EOF &&
144814484:Subject: [PATCH] subject
144914498:
1450145011:
1451145112:Signed-off-by: C O Mitter <committer@example.com>
14521452EOF
1453- test_cmp expected actual &&
1453+ test_cmp expect actual &&
14541454
14551455 test_config trailer.Myfooter.ifexists add &&
14561456 append_signoff <<\EOF >actual &&
@@ -1459,12 +1459,12 @@ subject
14591459Myfooter: x
14601460Some Trash
14611461EOF
1462- cat >expected <<\EOF &&
1462+ cat >expect <<\EOF &&
146314634:Subject: [PATCH] subject
146414648:
1465146511:Signed-off-by: C O Mitter <committer@example.com>
14661466EOF
1467- test_cmp expected actual
1467+ test_cmp expect actual
14681468'
14691469
14701470test_expect_success ' signoff: footer begins with non-signoff without @ sign' '
@@ -1479,13 +1479,13 @@ Change-id: Ideadbeef
14791479Signed-off-by: C O Mitter <committer@example.com>
14801480Bug: 1234
14811481EOF
1482- cat >expected <<\EOF &&
1482+ cat >expect <<\EOF &&
148314834:Subject: [PATCH] subject
148414848:
1485148510:
1486148614:Signed-off-by: C O Mitter <committer@example.com>
14871487EOF
1488- test_cmp expected actual
1488+ test_cmp expect actual
14891489'
14901490
14911491test_expect_success ' format patch ignores color.ui' '
@@ -1604,13 +1604,13 @@ test_expect_success 'format-patch --base' '
16041604 git checkout patchid &&
16051605 git format-patch --stdout --base=HEAD~3 -1 | tail -n 7 >actual1 &&
16061606 git format-patch --stdout --base=HEAD~3 HEAD~.. | tail -n 7 >actual2 &&
1607- echo >expected &&
1608- echo "base-commit: $(git rev-parse HEAD~3)" >>expected &&
1609- echo "prerequisite-patch-id: $(git show --patch HEAD~2 | git patch-id --stable | awk "{print \$1}")" >>expected &&
1610- echo "prerequisite-patch-id: $(git show --patch HEAD~1 | git patch-id --stable | awk "{print \$1}")" >>expected &&
1611- signature >> expected &&
1612- test_cmp expected actual1 &&
1613- test_cmp expected actual2 &&
1607+ echo >expect &&
1608+ echo "base-commit: $(git rev-parse HEAD~3)" >>expect &&
1609+ echo "prerequisite-patch-id: $(git show --patch HEAD~2 | git patch-id --stable | awk "{print \$1}")" >>expect &&
1610+ echo "prerequisite-patch-id: $(git show --patch HEAD~1 | git patch-id --stable | awk "{print \$1}")" >>expect &&
1611+ signature >> expect &&
1612+ test_cmp expect actual1 &&
1613+ test_cmp expect actual2 &&
16141614 echo >fail &&
16151615 echo "base-commit: $(git rev-parse HEAD~3)" >>fail &&
16161616 echo "prerequisite-patch-id: $(git show --patch HEAD~2 | git patch-id --unstable | awk "{print \$1}")" >>fail &&
@@ -1625,8 +1625,8 @@ test_expect_success 'format-patch --base errors out when base commit is in revis
16251625 test_must_fail git format-patch --base=HEAD~1 -2 &&
16261626 git format-patch --stdout --base=HEAD~2 -2 >patch &&
16271627 grep "^base-commit:" patch >actual &&
1628- echo "base-commit: $(git rev-parse HEAD~2)" >expected &&
1629- test_cmp expected actual
1628+ echo "base-commit: $(git rev-parse HEAD~2)" >expect &&
1629+ test_cmp expect actual
16301630'
16311631
16321632test_expect_success ' format-patch --base errors out when base commit is not ancestor of revision list' '
@@ -1652,8 +1652,8 @@ test_expect_success 'format-patch --base errors out when base commit is not ance
16521652 test_must_fail git format-patch --base=$(cat commit-id-Z) -3 &&
16531653 git format-patch --stdout --base=$(cat commit-id-base) -3 >patch &&
16541654 grep "^base-commit:" patch >actual &&
1655- echo "base-commit: $(cat commit-id-base)" >expected &&
1656- test_cmp expected actual
1655+ echo "base-commit: $(cat commit-id-base)" >expect &&
1656+ test_cmp expect actual
16571657'
16581658
16591659test_expect_success ' format-patch --base=auto' '
@@ -1664,8 +1664,8 @@ test_expect_success 'format-patch --base=auto' '
16641664 test_commit N2 &&
16651665 git format-patch --stdout --base=auto -2 >patch &&
16661666 grep "^base-commit:" patch >actual &&
1667- echo "base-commit: $(git rev-parse upstream)" >expected &&
1668- test_cmp expected actual
1667+ echo "base-commit: $(git rev-parse upstream)" >expect &&
1668+ test_cmp expect actual
16691669'
16701670
16711671test_expect_success ' format-patch errors out when history involves criss-cross' '
@@ -1701,17 +1701,17 @@ test_expect_success 'format-patch format.useAutoBaseoption' '
17011701 git config format.useAutoBase true &&
17021702 git format-patch --stdout -1 >patch &&
17031703 grep "^base-commit:" patch >actual &&
1704- echo "base-commit: $(git rev-parse upstream)" >expected &&
1705- test_cmp expected actual
1704+ echo "base-commit: $(git rev-parse upstream)" >expect &&
1705+ test_cmp expect actual
17061706'
17071707
17081708test_expect_success ' format-patch --base overrides format.useAutoBase' '
17091709 test_when_finished "git config --unset format.useAutoBase" &&
17101710 git config format.useAutoBase true &&
17111711 git format-patch --stdout --base=HEAD~1 -1 >patch &&
17121712 grep "^base-commit:" patch >actual &&
1713- echo "base-commit: $(git rev-parse HEAD~1)" >expected &&
1714- test_cmp expected actual
1713+ echo "base-commit: $(git rev-parse HEAD~1)" >expect &&
1714+ test_cmp expect actual
17151715'
17161716
17171717test_expect_success ' format-patch --base with --attach' '
0 commit comments