Skip to contentSkip to conversation

selftests/tpm2: Install run-time Python modules

PATCH In review Daniel Díaz 2 participants 2 messages Jun 20, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/tpm2: Install run-time Python modules

When ordinarily running the tests, upon `make install', the following error is encountered:
ImportError: No module named tpm2_tests
because the Python files are not installed at the moment.

Fix this by adding both Python modules as accompanying TEST_FILES in the Makefile.

---
 tools/testing/selftests/tpm2/Makefile | 1 +
 1 file changed, 1 insertion(+)
tools/testing/selftests/tpm2/Makefile +1 -0
index 9dd848427a7b..bf401f725eef 100644
@@ -2,3 +2,4 @@
 include ../lib.mk
 
 TEST_PROGS := test_smoke.sh test_space.sh
+TEST_FILES := tpm2.py tpm2_tests.py
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Daniel Díaz

When ordinarily running the tests, upon `make install', the following error is encountered:
ImportError: No module named tpm2_tests
because the Python files are not installed at the moment.

Fix this by adding both Python modules as accompanying TEST_FILES in the Makefile.

Question the kselftests maintainers: can I take this to [1] and include to my 5.3 PR?

[1] git://git.infradead.org/users/jjs/linux-tpmdd.git

/Jarkko