diff --git a/doc/dbus/meson.build b/doc/dbus/meson.build index fdb481e..2fc0b68 100644 --- a/doc/dbus/meson.build +++ b/doc/dbus/meson.build @@ -10,7 +10,7 @@ docbook_xml_header = custom_target('docbook_xml_header', dbus_interfaces_refs = [] foreach interface_file: dbus_interfaces - basename = run_command('basename', interface_file, '.xml').stdout().strip() + basename = run_command('basename', interface_file, '.xml', check: true).stdout().strip() dbus_interfaces_refs += custom_target(basename + '_ref', input: docbook_xml_header, output: basename + '.ref.xml', diff --git a/meson.build b/meson.build index 1584b16..d32af5d 100644 --- a/meson.build +++ b/meson.build @@ -184,7 +184,7 @@ python3_test_modules = { python3_available_modules = [] foreach module, required : python3_test_modules - if required and run_command(python3, '-c', 'import @0@'.format(module)).returncode() != 0 + if required and run_command(python3, '-c', 'import @0@'.format(module), check: false).returncode() != 0 warning('Python3 module \'' + module + '\' required by test suite not found') endif endforeach diff --git a/tests/meson.build b/tests/meson.build index 495acbc..c83d21a 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -52,7 +52,7 @@ endif unittest_inspector = find_program('unittest_inspector.py') foreach pt: python_tests - r = run_command(unittest_inspector, pt.get('file')) + r = run_command(unittest_inspector, pt.get('file'), check: false) unit_tests = r.stdout().strip().split('\n') base_args = [ pt.get('file') ] + pt.get('extra_args', []) suite = pt.get('suite', []) diff --git a/tests/pam/meson.build b/tests/pam/meson.build index bb3c1d9..df43117 100644 --- a/tests/pam/meson.build +++ b/tests/pam/meson.build @@ -18,11 +18,12 @@ endif foreach libname: preloaded_libs lib = run_command(meson.get_compiler('c'), - '-print-file-name=lib@0@.so'.format(libname) + '-print-file-name=lib@0@.so'.format(libname), + check: false, ).stdout().strip() # Support linker script files - if run_command('grep', '-qI', '^INPUT', files(lib)).returncode() == 0 + if run_command('grep', '-qI', '^INPUT', files(lib), check: false).returncode() == 0 out = run_command('cat', lib).stdout() lib = out.split('(')[1].split(')')[0].strip() endif