]> www.infradead.org Git - users/sagi/libnvme.git/commitdiff
test: adding dependency on pynvme
authorBoris Glimcher <Boris.Glimcher@emc.com>
Tue, 8 Mar 2022 07:55:18 +0000 (09:55 +0200)
committerBoris Glimcher <Boris.Glimcher@emc.com>
Tue, 8 Mar 2022 08:45:31 +0000 (10:45 +0200)
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 <Boris.Glimcher@emc.com>
libnvme/meson.build

index cfed0e2ac86e0e3382d8659d4176afe3ac928145..c95444e005cacb22ad702ac679e8151790cbcbf9 100644 (file)
@@ -58,7 +58,7 @@ if have_python_support
     test_env.append('PYTHONMALLOC', 'malloc')
 
     # Test section
-    test('[Python] import libnvme', python3, args: ['-c', 'from libnvme import nvme'], env: test_env)
+    test('[Python] import libnvme', python3, args: ['-c', 'from libnvme import nvme'], env: test_env, depends: pynvme_clib)
 
     py_tests = [ 
         [ 'create ctrl object', files('tests/create-ctrl-obj.py') ], 
@@ -66,6 +66,6 @@ if have_python_support
     foreach test: py_tests
         description = test[0]
         py_script   = test[1]
-        test('[Python] ' + description, python3, args: [py_script, ], env: test_env)
+        test('[Python] ' + description, python3, args: [py_script, ], env: test_env, depends: pynvme_clib)
     endforeach
 endif