Commit 3ca6f20
t/lib-gpg: refactor
The `sanitize_pgp()` test helper uses Perl to strip PGP signatures from
stdin. Refactor it to instead use sed(1) so that we drop the
PERL_TEST_HELPERS prerequisite in users of this library.
Note that we have to add PERL_TEST_HELPERS to a subset of tests in t6300
now that the test suite doesn't bail out early anymore in case the
prerequisite isn't set.
Helped-by: Johannes Schindelin <[email protected]>
Signed-off-by: Patrick Steinhardt <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>sanitize_pgp() to not depend on Perl1 parent 4a7af4e commit 3ca6f20
2 files changed
+11
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 195 | + | |
200 | 196 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 13 | | |
20 | 14 | | |
21 | 15 | | |
| |||
1215 | 1209 | | |
1216 | 1210 | | |
1217 | 1211 | | |
1218 | | - | |
| 1212 | + | |
1219 | 1213 | | |
1220 | 1214 | | |
1221 | 1215 | | |
| |||
1442 | 1436 | | |
1443 | 1437 | | |
1444 | 1438 | | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1445 | 1444 | | |
1446 | 1445 | | |
1447 | | - | |
| 1446 | + | |
1448 | 1447 | | |
1449 | 1448 | | |
1450 | 1449 | | |
1451 | 1450 | | |
1452 | 1451 | | |
1453 | 1452 | | |
1454 | 1453 | | |
1455 | | - | |
| 1454 | + | |
1456 | 1455 | | |
1457 | 1456 | | |
1458 | 1457 | | |
| |||
1482 | 1481 | | |
1483 | 1482 | | |
1484 | 1483 | | |
1485 | | - | |
| 1484 | + | |
1486 | 1485 | | |
1487 | 1486 | | |
1488 | 1487 | | |
1489 | 1488 | | |
1490 | 1489 | | |
1491 | | - | |
| 1490 | + | |
1492 | 1491 | | |
1493 | 1492 | | |
1494 | 1493 | | |
| |||
0 commit comments