meson finds `dbusmock` python module even if not installed on the system
On a system without dbusmock installed, the exit code is 0 when running run_command(python3, '-c', 'import @0@'.format(module), check: false)
(in tests/meson.build
) for module = 'dbusmock'. The reason is that the directory tests
contains a subdirectory dbusmock
, which is enough to allow the import to succeed (sys.path contains the current directory).
Meson then fails later when running unittest_inspector.
I guess it would be enough to change the subdirectory name to something else, but I am not sure whether some paths would have to be changed or not.