]> git.ipfire.org Git - thirdparty/git.git/commit
t0210: refactor trace2 scrubbing to not use Perl
authorPatrick Steinhardt <ps@pks.im>
Thu, 3 Apr 2025 05:06:09 +0000 (07:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Apr 2025 21:47:41 +0000 (14:47 -0700)
commit9f4bce35b399508737e30bb5b22787d86cb5001f
tree7f205e4f841896f4c065f7526f2718607f83c4ce
parent88ed7b84cd97a0bafeeecefe6e7649eec090e02b
t0210: refactor trace2 scrubbing to not use Perl

The output generated by our trace2 mechanism contains several fields
that are dependent on the environment they're being run in, which makes
it somewhat harder to test it. As a countermeasure we scrub the output
and strip out any fields that contain such information.

The logic to do so is implemented in Perl, but it can be trivially
ported to instead use sed(1). Refactor the code accordingly so that we
can drop the PERL_TEST_HELPERS prerequisite.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0210-trace2-normal.sh
t/t0210/scrub_normal.perl [deleted file]