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:
Andrea Bolognani 2023-11-29 17:43:16 +01:00
parent 688aedf2eb
commit 233e74e3bf

View File

@ -1,4 +1,6 @@
subdir('rpcgen')
if tests_enabled[0]
subdir('tests')
if pytest_prog.found()
@ -11,6 +13,7 @@ if pytest_prog.found()
suite: 'script',
)
endif
endif
rpcgen_prog = find_program('main.py')
rpcgen_src += files(['main.py'])