]> Kevux Git Server - rit/commit
t7005: sanitize test environment for subsequent tests
authorD. Ben Knoble <ben.knoble+github@gmail.com>
Wed, 13 Aug 2025 17:50:05 +0000 (13:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 13 Aug 2025 18:50:00 +0000 (11:50 -0700)
commita60203a01512c7544e5e10b9e8b936a30ac4455c
tree4a2c94f22504ca074ab0736e904a322aaa0ad15d
parenta9c4141abb9fa13abcb226d569c43f9b7b0aa53f
t7005: sanitize test environment for subsequent tests

Some of the editor tests manipulate the environment or config in ways
that affect future tests, but those modifications are visible to future
tests and create a footgun for them.

Use test_config, subshells, single-command environment overrides, and
test helpers to automatically undo environment and config modifications
once finished.

Best-viewed-with: --ignore-all-space
Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7005-editor.sh