Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set proper QEMUTPM parameter for tpm tests #14427

Merged
merged 1 commit into from
Mar 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/security/tpm2/tpm2_env_setup.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Summary: TPM2 test environment prepare
# Install required packages and create user, start the abrmd service
# Maintainer: rfan1 <richard.fan@suse.com>
# Tags: poo#64899, poo#103143, poo#105732, tc#1742297, tc#1742298
# Tags: poo#64899, poo#103143, poo#105732, poo#107908, tc#1742297, tc#1742298

use strict;
use warnings;
Expand Down Expand Up @@ -42,7 +42,7 @@ sub run {
# tpm2 device, and we can also user TPM emulator.
# As we use TPM emulator, we should do some modification for tpm2-abrmd service
# and make it connect to "--tcti=libtss2-tcti-mssim.so"
if (get_var('QEMUTPM', 0) != 1 || get_var('QEMUTPM_VER', '') ne '2.0') {
if (get_var('QEMUTPM', '') ne 'instance' || get_var('QEMUTPM_VER', '') ne '2.0') {
assert_script_run("mkdir /etc/systemd/system/tpm2-abrmd.service.d");
assert_script_run(
"echo \"\$(cat <<EOF
Expand Down