mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
rpcgen: Skip tests if tests are disabled
Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
688aedf2eb
commit
233e74e3bf
@ -1,15 +1,18 @@
|
|||||||
subdir('rpcgen')
|
subdir('rpcgen')
|
||||||
subdir('tests')
|
|
||||||
|
|
||||||
if pytest_prog.found()
|
if tests_enabled[0]
|
||||||
test(
|
subdir('tests')
|
||||||
'rpcgen-pytest',
|
|
||||||
python3_prog,
|
if pytest_prog.found()
|
||||||
args: [ '-mpytest' ] + rpcgen_tests,
|
test(
|
||||||
env: runutf8,
|
'rpcgen-pytest',
|
||||||
workdir: meson.current_source_dir(),
|
python3_prog,
|
||||||
suite: 'script',
|
args: [ '-mpytest' ] + rpcgen_tests,
|
||||||
)
|
env: runutf8,
|
||||||
|
workdir: meson.current_source_dir(),
|
||||||
|
suite: 'script',
|
||||||
|
)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rpcgen_prog = find_program('main.py')
|
rpcgen_prog = find_program('main.py')
|
||||||
|
Loading…
Reference in New Issue
Block a user