32 lines
1.0 KiB
Diff
32 lines
1.0 KiB
Diff
|
|
From d95cbdd8738d61b8bc7c9a1541dade42c1f48314 Mon Sep 17 00:00:00 2001
|
||
|
|
From: adttil <2429917001@qq.com>
|
||
|
|
Date: Thu, 1 Feb 2024 21:53:58 +0800
|
||
|
|
Subject: [PATCH] tests/qemu-iotests: resolved the problem that the 108 test
|
||
|
|
cases in the container fail
|
||
|
|
|
||
|
|
The loop device cannot be created in the compilation environment of the
|
||
|
|
container. Therefore, a judgment condition is added to the
|
||
|
|
initialization variable loopdev to check whether loop-control exists.
|
||
|
|
|
||
|
|
Signed-off-by: Adttil <2429917001@qq.com>
|
||
|
|
---
|
||
|
|
tests/qemu-iotests/108 | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/tests/qemu-iotests/108 b/tests/qemu-iotests/108
|
||
|
|
index 54e935acf2..a6fe261265 100755
|
||
|
|
--- a/tests/qemu-iotests/108
|
||
|
|
+++ b/tests/qemu-iotests/108
|
||
|
|
@@ -55,7 +55,7 @@ _supported_os Linux
|
||
|
|
_unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file
|
||
|
|
|
||
|
|
# This test either needs sudo -n losetup or FUSE exports to work
|
||
|
|
-if sudo -n losetup &>/dev/null; then
|
||
|
|
+if test -c "/dev/loop-control" && sudo -n losetup &>/dev/null; then
|
||
|
|
loopdev=true
|
||
|
|
else
|
||
|
|
loopdev=false
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|