mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-09 02:28:19 +02:00
build: Add check argument to run_command() calls
This commit is contained in:
parent
b79ac14b0f
commit
609a246e97
4 changed files with 6 additions and 5 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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', [])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue