selftests/tpm2: Install run-time Python modules
Subsystems (2)
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.
Signed-off-by Daniel Díaz <[email protected]>
--- tools/testing/selftests/tpm2/Makefile | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/tpm2/Makefile +1 -0
@@ -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
Quoted 9 lines · Daniel Díaz
When ordinarily running the tests, upon `make install', the following error is encountered:
ImportError: No module namedtpm2_tests
because the Python files are not installed at the moment.Fix this by adding both Python modules as accompanying
TEST_FILESin theMakefile.Signed-off-by Daniel Díaz <[email protected]>
Reviewed-by Jarkko Sakkinen <[email protected]>
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