Skip to content

Commit 33eb196

Browse files
committed
test: disable TPM emulation in virt-install commands
Add --tpm none to all virt-install commands to work around SELinux regression with swtpm on Fedora Rawhide hosts. TPM is not used in greenboot tests, so disabling it avoids the swtpm-related failures without affecting test coverage. Suggested-by: Klara Zatloukalova <kzatloka@redhat.com> Signed-off-by: Sarita Mahajan <sarmahaj@redhat.com>
1 parent 2042660 commit 33eb196

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/greenboot-bootc-anaconda-iso.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,7 @@ sudo virt-install --name="${TEST_UUID}-uefi"\
338338
--os-variant ${OS_VARIANT} \
339339
--cdrom "/var/lib/libvirt/images/install.iso" \
340340
--boot ${BOOT_ARGS} \
341+
--tpm none \
341342
--graphics none \
342343
--serial file,path=${CONSOLE_LOG} \
343344
--noautoconsole \

tests/greenboot-bootc-qcow2.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ sudo virt-install --name="${TEST_UUID}-uefi"\
304304
--os-type linux \
305305
--os-variant ${OS_VARIANT} \
306306
--boot ${BOOT_ARGS} \
307+
--tpm none \
307308
--graphics none \
308309
--serial file,path=${CONSOLE_LOG} \
309310
--noautoconsole \

tests/greenboot-ostree.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@ sudo virt-install --name="${IMAGE_KEY}"\
420420
--network network=integration,mac=34:49:22:B0:83:30 \
421421
--os-variant ${OS_VARIANT} \
422422
--boot ${BOOT_ARGS} \
423+
--tpm none \
423424
--location "${BOOT_LOCATION}" \
424425
--graphics none \
425426
--serial file,path=${CONSOLE_LOG} \

0 commit comments

Comments
 (0)