Projects
home:dongzhihai
qemu
_service:tar_scm:tests-qemu-iotests-resolved-th...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:tests-qemu-iotests-resolved-the-problem-that-the-108.patch of Package qemu
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2