qemu-block
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 02/10] tests/qemu-iotests: skip 108 when FUSE is not loade


From: Thomas Huth
Subject: Re: [PATCH v2 02/10] tests/qemu-iotests: skip 108 when FUSE is not loaded
Date: Fri, 17 Jun 2022 11:20:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0

On 16/06/2022 16.26, John Snow wrote:
In certain container environments we may not have FUSE at all, so skip
the test in this circumstance too.

Signed-off-by: John Snow <jsnow@redhat.com>
---
  tests/qemu-iotests/108 | 5 +++++
  1 file changed, 5 insertions(+)

diff --git a/tests/qemu-iotests/108 b/tests/qemu-iotests/108
index 9e923d6a59f..54e935acf28 100755
--- a/tests/qemu-iotests/108
+++ b/tests/qemu-iotests/108
@@ -60,6 +60,11 @@ if sudo -n losetup &>/dev/null; then
  else
      loopdev=false
+ # Check for usable FUSE in the host environment:
+    if test ! -c "/dev/fuse"; then
+        _notrun 'No passwordless sudo nor usable /dev/fuse'
+    fi
+
      # QSD --export fuse will either yield "Parameter 'id' is missing"
      # or "Invalid parameter 'fuse'", depending on whether there is
      # FUSE support or not.

Reviewed-by: Thomas Huth <thuth@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]