Skip to content

Commit 3a09db1

Browse files
committed
test: adding dependency on pynvme
On few systems (i.e. Fedora) when running meson test, the python library build is not invoked. For example, on Ubuntu, this works fine. That's why CI dodn't catch it. So adding explicit dependency in tests. Fixes #279 Signed-off-by: Boris Glimcher <[email protected]>
1 parent f45c6d4 commit 3a09db1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

libnvme/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ if have_python_support
5858
test_env.append('PYTHONMALLOC', 'malloc')
5959

6060
# Test section
61-
test('[Python] import libnvme', python3, args: ['-c', 'from libnvme import nvme'], env: test_env)
61+
test('[Python] import libnvme', python3, args: ['-c', 'from libnvme import nvme'], env: test_env, depends: pynvme_clib)
6262

6363
py_tests = [
6464
[ 'create ctrl object', files('tests/create-ctrl-obj.py') ],
6565
]
6666
foreach test: py_tests
6767
description = test[0]
6868
py_script = test[1]
69-
test('[Python] ' + description, python3, args: [py_script, ], env: test_env)
69+
test('[Python] ' + description, python3, args: [py_script, ], env: test_env, depends: pynvme_clib)
7070
endforeach
7171
endif

0 commit comments

Comments
 (0)