diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-02-20 08:24:12 +0100 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2024-02-20 08:25:53 +0100 |
commit | 7dbb21e77ace03bf28dc9a6b37b43d551282389f (patch) | |
tree | a838a2b9906de759f6a8f04253d8923f5e6e03bd | |
parent | 4b72f27de6706a6001e82b477b647ced30cc37b5 (diff) |
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
-rw-r--r-- | tests/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 8c8f5d0..dc3b70e 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -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 |