aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-04-28 22:41:06 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-04-28 22:41:06 +0200
commit7b7bbdd999d00446966f100212bc469970e769a3 (patch)
tree53f7d179a0b7e9a36d734d56825c6c5dec7e393b /tools
parent4593eec17385c190747df48155f95d71c591102e (diff)
tools: disable stub tester if no introspection enabled
TEST: test-stub... /MM/stub/modem/interface: dbus-daemon[48020]: [session uid=0 pid=48020] Activating service name='org.freedesktop.ModemManager1' requested by ':1.0' (uid=0 pid=48005 comm="/builds/mobile-broadband/ModemManager/tools/tests/") Traceback (most recent call last): File "/builds/mobile-broadband/ModemManager/tools/test-modemmanager-service.py", line 7, in <module> gi.require_version('ModemManager', '1.0') File "/usr/lib/python3/dist-packages/gi/__init__.py", line 129, in require_version raise ValueError('Namespace %s not available' % namespace) ValueError: Namespace ModemManager not available dbus-daemon[48020]: [session uid=0 pid=48020] Activated service 'org.freedesktop.ModemManager1' failed: Process org.freedesktop.ModemManager1 exited with status 1
Diffstat (limited to 'tools')
-rw-r--r--tools/tests/Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/tests/Makefile.am b/tools/tests/Makefile.am
index c91675bf..f84a8fec 100644
--- a/tools/tests/Makefile.am
+++ b/tools/tests/Makefile.am
@@ -31,7 +31,10 @@ test_stub_CPPFLAGS = \
-DTEST_SERVICES=\""$(abs_top_builddir)/tools/tests/services"\" \
$(NULL)
+# only run the test if introspection was enabled
+if HAVE_INTROSPECTION
TEST_PROGS += $(noinst_PROGRAMS)
+endif
test-wrapper.sh: test-wrapper.sh.in
@sed \