The gcs plugin uses the google cloud module and can't work without it.
Skip the test if the module is unavailable.

Signed-off-by: Thomas Weißschuh <tho...@t-8ch.de>
---
 tests/test-gcs.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test-gcs.sh b/tests/test-gcs.sh
index ed823377dc5a..9b165e8159be 100755
--- a/tests/test-gcs.sh
+++ b/tests/test-gcs.sh
@@ -40,6 +40,7 @@ requires $PYTHON --version
 requires_nbdcopy
 requires_plugin python
 skip_if_valgrind "because Python code leaks memory"
+requires $PYTHON -c 'import google.cloud'
 
 # Skip this test if the real google-cloud-storage module is installed,
 # since that module abuses pth files to insert itself into the module

base-commit: ffa62d30fe6dcd29ae8e20df5c86d48505550614
-- 
2.44.0
_______________________________________________
Libguestfs mailing list -- guestfs@lists.libguestfs.org
To unsubscribe send an email to guestfs-le...@lists.libguestfs.org

Reply via email to