]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpcgen: Don't skip all tests when pytest is missing
authorAndrea Bolognani <abologna@redhat.com>
Wed, 29 Nov 2023 14:50:30 +0000 (15:50 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 1 Dec 2023 12:50:16 +0000 (13:50 +0100)
Some of the files used by test_demo.c can only be regenerated
when pytest is present, but we have pre-generated copies in the
repository, so overall we just need the C compiler to build and
run that specific test program.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
scripts/rpcgen/meson.build

index 65236457be30dee76827755e7e9da070025018d1..20e4c06dbcb74389e6200c818e2f50999494ae7b 100644 (file)
@@ -1,8 +1,7 @@
 subdir('rpcgen')
+subdir('tests')
 
 if pytest_prog.found()
-    subdir('tests')
-
     test(
         'rpcgen-pytest',
         python3_prog,