test: py: Add pyelftools dependency for test_event_dump
PATCH 1/1 test: py: Add pyelftools dependency for test_event_dump
From: "Kory Maincent (TI.com)" <[email protected]>
The test_event_dump test requires pyelftools to run.
Add this missing dependency to requirements.txt to ensure the test can run successfully.
--- test/py/requirements.txt | 1 + 1 file changed, 1 insertion(+)
test/py/requirements.txt +1 -0
@@ -3,3 +3,4 @@ pycryptodomex==3.21.0 pytest==6.2.5 pytest-xdist==2.5.0 FATtools==1.0.42 +pyelftools==0.32
Signature · 1 line
2.43.0
Quoted 16 lines · Kory Maincent
From: "Kory Maincent (TI.com)" <[email protected]>
The
test_event_dumptest requires pyelftools to run.
Add this missing dependency to requirements.txt to ensure the test can run successfully.Signed-off-by Kory Maincent (TI.com) <[email protected]>--- test/py/requirements.txt | 1 + 1 file changed, 1 insertion(+)test/py/requirements.txt +0
-0
test/py/requirements.txt pycryptodomex==3.21.0 · line 6
Quoted 4 lines
test/py/requirements.txt +1
-0@@ -3,3 +3,4 @@ pycryptodomex==3.21.0 pytest==6.2.5 pytest-xdist==2.5.0 FATtools==1.0.42 +pyelftools==0.32
So with commit 859621b47f9e ("python: Recreate test/py and tools/buildman requirements.txt files") I re-created this file and pyelftools was removed. I think what's wrong is that it's not documented that you need tools/binman/requirements.txt installed because test_event_dump uses scripts/event_dump.py and that imports elf from binman and that in turn needs pyelftools.
Signature · 1 line
Tom
Quoted 13 lines · On Wed, 22 Oct 2025 10:19:58 -0600 Tom Rini <[email protected]> wrote:
Quoted 11 lines · Kory Maincent
From: "Kory Maincent (TI.com)" <[email protected]>
The
test_event_dumptest requires pyelftools to run.
Add this missing dependency to requirements.txt to ensure the test can run successfully.Signed-off-by Kory Maincent (TI.com) <[email protected]>--- test/py/requirements.txt | 1 + 1 file changed, 1 insertion(+)
Quoted 16 lines
test/py/requirements.txt pycryptodomex==3.21.0 · line 6
Quoted 9 lines
test/py/requirements.txt +1
-0@@ -3,3 +3,4 @@ pycryptodomex==3.21.0 pytest==6.2.5 pytest-xdist==2.5.0 FATtools==1.0.42 +pyelftools==0.32So with commit
859621b47f9e("python: Recreate test/py andtools/buildmanrequirements.txt files") I re-created this file and pyelftools was removed. I think what's wrong is that it's not documented that you needtools/binman/requirements.txtinstalled becausetest_event_dumpusesscripts/event_dump.pyand that imports elf from binman and that in turn needs pyelftools.
Ok, so it is rather a documentation change needed here.
Regards,
Signature · 3 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com