Skip to contentSkip to conversation

test: py: Add pyelftools dependency for test_event_dump

PATCH In review Kory Maincent 2 participants 3 messages Oct 22, 2025

lore
Share & tools
lore
#0 lore raw

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
index 804a427b351..6d7909cb919 100644
@@ -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
#1 lore raw
Quoted 16 lines · Kory Maincent

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 +0 -0
index 804a427b351..6d7909cb919 100644

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
#2 lore raw
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_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(+)
Quoted 16 lines

test/py/requirements.txt pycryptodomex==3.21.0 · line 6

Quoted 9 lines
test/py/requirements.txt +1 -0
index 804a427b351..6d7909cb919 100644
@@ -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.

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