[Libguestfs] [PATCH v2] v2v: -o rhv-upload: test-v2v-o-rhv-upload.sh: add more skip checks

Pino Toscano ptoscano at redhat.com
Mon Oct 1 14:40:19 UTC 2018


-o rhv-upload requires python3, and nbdkit with the python3 plugin, so
skip this test if they are not installed.
---

v1 is:
https://www.redhat.com/archives/libguestfs/2018-October/msg00008.html

 v2v/test-v2v-o-rhv-upload.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/v2v/test-v2v-o-rhv-upload.sh b/v2v/test-v2v-o-rhv-upload.sh
index 8bda7cc0b..23d2ad7a0 100755
--- a/v2v/test-v2v-o-rhv-upload.sh
+++ b/v2v/test-v2v-o-rhv-upload.sh
@@ -28,6 +28,8 @@ set -x
 $TEST_FUNCTIONS
 skip_if_skipped
 skip_if_backend uml
+skip_unless python3 --version
+skip_unless nbdkit python3 --version
 skip_unless_phony_guest windows.img
 
 libvirt_uri="test://$abs_top_builddir/test-data/phony-guests/guests.xml"
-- 
2.17.1




More information about the Libguestfs mailing list