Skip to content

Commit

Permalink
tests: Test resolving env. variabels in swtpm_setup config file
Browse files Browse the repository at this point in the history
Modify a test case and write an environment variable into the
swtpm_setup.conf config file to test that it gets resolved.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed May 31, 2021
1 parent 2737fe1 commit 827a86d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_tpm2_swtpm_setup_create_cert
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ cat <<_EOF_ > "${workdir}/swtpm-localca.options"
--platform-model "QEMU A.B"
_EOF_

export MY_SWTPM_LOCALCA="${SWTPM_LOCALCA}"

cat <<_EOF_ > "${workdir}/swtpm_setup.conf"
create_certs_tool=${SWTPM_LOCALCA}
create_certs_tool=\${MY_SWTPM_LOCALCA}
create_certs_tool_config=${workdir}/swtpm-localca.conf
create_certs_tool_options=${workdir}/swtpm-localca.options
_EOF_
Expand Down

0 comments on commit 827a86d

Please sign in to comment.