summaryrefslogtreecommitdiffstats
path: root/test/TEST-70-TPM2
diff options
context:
space:
mode:
authorDan Streetman <ddstreet@ieee.org>2023-07-07 19:37:28 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2023-07-08 02:13:29 +0200
commit9071d6b1a389d611426d285a9d8ed01322dd0359 (patch)
treee6fe3648f67022a5f3c85e5c358aacf59782ffc1 /test/TEST-70-TPM2
parenttest-proc-cmdline: run tests only with efi (diff)
downloadsystemd-9071d6b1a389d611426d285a9d8ed01322dd0359.tar.xz
systemd-9071d6b1a389d611426d285a9d8ed01322dd0359.zip
test: Add DA lockout handling to TEST-70-TPM2
Since this test intentionally provides an incorrect PIN, the DA lockout counter is incremented; the test needs to reset it so there is no DA lockout.
Diffstat (limited to 'test/TEST-70-TPM2')
-rwxr-xr-xtest/TEST-70-TPM2/test.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/TEST-70-TPM2/test.sh b/test/TEST-70-TPM2/test.sh
index f3ac1399fc..8d54c3c05c 100755
--- a/test/TEST-70-TPM2/test.sh
+++ b/test/TEST-70-TPM2/test.sh
@@ -11,7 +11,7 @@ TEST_REQUIRE_INSTALL_TESTS=0
# shellcheck source=test/test-functions
. "${TEST_BASE_DIR:?}/test-functions"
-test_require_bin swtpm tpm2_pcrextend
+test_require_bin swtpm tpm2_pcrextend tpm2_dictionarylockout
test_append_files() {
local workspace="${1:?}"
@@ -19,6 +19,7 @@ test_append_files() {
instmods tpm tpm_tis tpm_ibmvtpm
install_dmevent
generate_module_dependencies
+ inst_binary tpm2_dictionarylockout
inst_binary tpm2_pcrextend
inst_binary tpm2_pcrread
inst_binary openssl