mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01:00
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:
parent
96ee1ea086
commit
120e0ee649
@ -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,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user