Skip to content
Snippets Groups Projects
Commit 7dbb21e7 authored by Marco Trevisan's avatar Marco Trevisan
Browse files

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
parent 4b72f27d
No related branches found
No related tags found
1 merge request!467build/tests: Skip a test if the test requires it during inspection
Pipeline #1107793 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment