Skip to content

Commit 861ce61

Browse files
mvo5ondrejbudai
authored andcommitted
test: enable OSBUILD_EXPERIMENTAL=debug-qemu-user
This commit enables OSBUILD_EXPERIMENTAL=debug-qemu-user during the tests so that we see what unimplemented syscalls or ioctls are used. This should help with the cross-arch failure debugging we see in tmt right now.
1 parent e9183bc commit 861ce61

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_build_disk.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,11 @@ def build_images(shared_tmpdir, build_container, request, force_aws_upload, gpg_
426426
"-v", "/var/tmp/osbuild-test-store:/store", # share the cache between builds
427427
"-v", "/var/lib/containers/storage:/var/lib/containers/storage", # mount the host's containers storage
428428
]
429+
if tc.target_arch:
430+
# help debug cross-arch issues by making qemu-user print
431+
cmd.extend(
432+
["--env", "OSBUILD_EXPERIMENTAL=debug-qemu-user"])
433+
429434
if tc.podman_terminal:
430435
cmd.append("-t")
431436

0 commit comments

Comments
 (0)