summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2024-02-20 08:24:12 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2024-02-20 08:25:53 +0100
commit7dbb21e77ace03bf28dc9a6b37b43d551282389f (patch)
treea838a2b9906de759f6a8f04253d8923f5e6e03bd /tests
parent4b72f27de6706a6001e82b477b647ced30cc37b5 (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
Diffstat (limited to 'tests')
-rw-r--r--tests/meson.build8
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