加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tests-qemu-iotests-resolved-the-problem-that-the-108.patch 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
Jiabo Feng 提交于 2024-03-23 09:20 . QEMU update to version 8.2.0-2
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化