tests: Set a default timeout value for GIO Python tests

Otherwise every test has to set one explicitly, which is a bit tedious.

Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
Philip Withnall 2023-11-01 17:00:15 +00:00 committed by Philip Withnall
parent 96ee1ea086
commit 120e0ee649

View File

@ -1074,6 +1074,7 @@ endforeach
foreach test_name, extra_args : python_tests foreach test_name, extra_args : python_tests
depends = [extra_args.get('depends', [])] depends = [extra_args.get('depends', [])]
suite = ['gio', 'no-valgrind'] + extra_args.get('suite', []) suite = ['gio', 'no-valgrind'] + extra_args.get('suite', [])
timeout = extra_args.get('timeout', test_timeout)
if extra_args.get('can_fail', false) if extra_args.get('can_fail', false)
suite += 'failing' suite += 'failing'
@ -1090,7 +1091,7 @@ foreach test_name, extra_args : python_tests
depends: depends, depends: depends,
args: ['-B', files(test_name)], args: ['-B', files(test_name)],
env: test_env, env: test_env,
timeout: extra_args.get('timeout'), timeout: timeout,
suite: suite, suite: suite,
) )