]> git.ipfire.org Git - thirdparty/git.git/commit
meson: introduce kwargs variable for tests
authorPatrick Steinhardt <ps@pks.im>
Mon, 2 Jun 2025 06:44:49 +0000 (08:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jun 2025 14:51:43 +0000 (07:51 -0700)
commitb44e63f405a6508652dab2d4ade71e6f0afb9f36
tree6caec071abd6246461040987b38a46988ad898a9
parent5e0752b071b7e5a702c2008391505c7a39d0bd01
meson: introduce kwargs variable for tests

Meson has the ability to create a kwargs dictionary that can then be
passed to any function call with the `kwargs:` positional argument. This
allows one to deduplicate common parameters that one wishes to pass to
several different function invocations.

Our tests already have one common parameter that we use everywhere,
"timeout", and we're about to add a second common parameter in the next
commit. Let's prepare for this by introducing `test_kwargs` so that we
can deduplicate these common arguments.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/netrc/meson.build
contrib/subtree/meson.build
meson.build
t/meson.build