Allow tests to mark themselves as skipped during runtime.
This commit is contained in:
parent
5fdac48250
commit
5603f90287
|
@ -379,7 +379,7 @@ def run_tests(extra_args):
|
|||
futures.append((testname, t, result))
|
||||
for (testname, t, result) in futures:
|
||||
result = result.result()
|
||||
if result is None:
|
||||
if result is None or 'MESON_SKIP_TEST' in result.stdo:
|
||||
print('Skipping:', t)
|
||||
current_test = ET.SubElement(current_suite, 'testcase', {'name' : testname,
|
||||
'classname' : name})
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
project('skip', 'c')
|
||||
|
||||
error('MESON_SKIP_TEST this test is always skipped.')
|
||||
|
|
@ -8,4 +8,6 @@ inc = include_directories('include')
|
|||
|
||||
# We have to disable this test until this bug fix has landed to
|
||||
# distros https://bugzilla.gnome.org/show_bug.cgi?id=753145
|
||||
# subdir('doc')
|
||||
error('MESON_SKIP_TEST can not enable gtk-doc test until upstream fixes have landed.')
|
||||
|
||||
subdir('doc')
|
||||
|
|
|
@ -13,5 +13,5 @@ if cython.found()
|
|||
env : ['PYTHONPATH=' + pydir]
|
||||
)
|
||||
else
|
||||
message('Cython not found, skipping test.')
|
||||
error('MESON_SKIP_TEST: Cython not found, skipping test.')
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue