Skip to content

Commit

Permalink
Merge pull request #14427 from rfan1/qemutpm_instance
Browse files Browse the repository at this point in the history
Set proper QEMUTPM parameter for tpm tests
  • Loading branch information
Amrysliu committed Mar 8, 2022
2 parents 52a6be7 + 01c0804 commit 7dc685e
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 7dc685e

Please sign in to comment.