mirror of
https://github.com/morgan9e/libfprint-fpc1020
synced 2026-04-14 16:34:24 +09:00
build/tests: Skip a test if the test requires it during inspection
In case we don't have dependencies, we should skip the test, otherwise we can just fail at test time
This commit is contained in:
@@ -100,11 +100,17 @@ if get_option('introspection')
|
||||
base_args = files(vdtest + '.py')
|
||||
suite = ['virtual-driver']
|
||||
|
||||
r = run_command(unittest_inspector, files(vdtest + '.py'), check: true)
|
||||
r = run_command(unittest_inspector, files(vdtest + '.py'), check: false)
|
||||
unit_tests = r.stdout().strip().split('\n')
|
||||
|
||||
if r.returncode() == 0 and unit_tests.length() > 0
|
||||
suite += vdtest
|
||||
elif r.returncode() == 77
|
||||
test(vdtest,
|
||||
sh,
|
||||
args: ['-c', 'exit 77']
|
||||
)
|
||||
continue
|
||||
else
|
||||
unit_tests = [vdtest]
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user