mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
5e0752b071
commit
b44e63f405
@@ -2036,6 +2036,10 @@ subdir('templates')
|
||||
# can properly set up test dependencies. The bin-wrappers themselves are set up
|
||||
# at configuration time, so these are fine.
|
||||
if get_option('tests')
|
||||
test_kwargs = {
|
||||
'timeout': 0,
|
||||
}
|
||||
|
||||
subdir('t')
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user