[Libguestfs] [PATCH] tests: rhv-upload: Require nbdkit python plugin

Nir Soffer nirsof at gmail.com
Fri Nov 29 01:00:50 UTC 2019


With recent nbdkit the skip test fails the rhv-upload test skip:

    $ nbdkit python3 --version
    nbdkit: error: cannot open plugin 'python3':
    /usr/local/lib/nbdkit/plugins/nbdkit-python3-plugin.so: cannot open
    shared object file: No such file or directory

It seems that the python plugin is always installed as
nbdkit-python-plugin.so, so the correct test now is:

    nbdkit python --version

This may not work with older version of nbdkit, but I'm not sure this is
relevant now.
---
 tests/test-v2v-o-rhv-upload.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test-v2v-o-rhv-upload.sh b/tests/test-v2v-o-rhv-upload.sh
index a2f5b0d5..fe0a4d94 100755
--- a/tests/test-v2v-o-rhv-upload.sh
+++ b/tests/test-v2v-o-rhv-upload.sh
@@ -29,7 +29,7 @@ $TEST_FUNCTIONS
 skip_if_skipped
 skip_if_backend uml
 skip_unless python3 --version
-skip_unless nbdkit python3 --version
+skip_unless nbdkit python --version
 skip_unless_phony_guest windows.img
 
 libvirt_uri="test://$abs_top_builddir/test-data/phony-guests/guests.xml"
-- 
2.21.0





More information about the Libguestfs mailing list