Skip to contentSkip to conversation

test/py: Update to a newer pytest release

PATCH Superseded Tom Rini 3 participants 7 messages Oct 10, 2025 – Oct 17, 2025

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 test/py: Update to a newer pytest release

Our pytest package was pinned to a release from 2021. The minimum compatible with labgrid v25.0.x is pytest 7.0.0. Update to the final release of the 7.x series to start with.

---
 test/py/requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/requirements.txt +1 -1
index 804a427b3514..672a58ae3584 100644
@@ -1,5 +1,5 @@
 filelock==3.0.12
 pycryptodomex==3.21.0
-pytest==6.2.5
+pytest==7.4.4
 pytest-xdist==2.5.0
 FATtools==1.0.42
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 1/1 test/py: Update to pytest 8.0.2

This is not intended to apply directly as currently it leads to the sandbox.py (and sandbox build with clang) tests failing as the efi selftest now has 4 failures when before it had zero.

---
Cc: Heinrich Schuchardt <[email protected]>

---
 test/py/requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/requirements.txt +1 -1
index 672a58ae3584..4eefe374435c 100644
@@ -1,5 +1,5 @@
 filelock==3.0.12
 pycryptodomex==3.21.0
-pytest==7.4.4
+pytest==8.0.2
 pytest-xdist==2.5.0
 FATtools==1.0.42
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH RFH DO NOT APPLY] test/py: Update to pytest 8.0.2

Quoted 5 lines · Tom Rini

This is not intended to apply directly as currently it leads to the sandbox.py (and sandbox build with clang) tests failing as the efi selftest now has 4 failures when before it had zero.

Why wouldn't we try to move to the current release 8.4.2?

For reference Ubuntu 25.10 uses 8.3.5.

Best regards

Heinrich

Quoted 17 lines

---
Cc: Heinrich Schuchardt <[email protected]>

---
  test/py/requirements.txt | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
test/py/requirements.txt +1 -1
index 672a58ae3584..4eefe374435c 100644
@@ -1,5 +1,5 @@
  filelock==3.0.12
  pycryptodomex==3.21.0
-pytest==7.4.4
+pytest==8.0.2
  pytest-xdist==2.5.0
  FATtools==1.0.42
author
#3 lore raw

Re: [PATCH RFH DO NOT APPLY] test/py: Update to pytest 8.0.2

Quoted 8 lines · Heinrich Schuchardt
Quoted 5 lines · Tom Rini

This is not intended to apply directly as currently it leads to the sandbox.py (and sandbox build with clang) tests failing as the efi selftest now has 4 failures when before it had zero.

Why wouldn't we try to move to the current release 8.4.2?

My first move was to 8.4.2, which had this failure. I jumped back to 7.4.5 which doesn't (so that we can move forward with newer labgrid support). I then started slowly incrementing to see when the failure was introduced (as it can be helpful to look at the upstream changelogs to have an idea why our tests now fail) and luckily it seems to be in the 8.0.x range.

Signature · 1 line
Tom
#4 lore raw

Re: [PATCH RFH DO NOT APPLY] test/py: Update to pytest 8.0.2

Quoted 8 lines · Tom Rini
Quoted 7 lines · Heinrich Schuchardt
Quoted 5 lines · Tom Rini

This is not intended to apply directly as currently it leads to the sandbox.py (and sandbox build with clang) tests failing as the efi selftest now has 4 failures when before it had zero.

Quoted 9 lines
Quoted 1 line

Why wouldn't we try to move to the current release 8.4.2?

My first move was to 8.4.2, which had this failure. I jumped back to 7.4.5 which doesn't (so that we can move forward with newer labgrid support). I then started slowly incrementing to see when the failure was introduced (as it can be helpful to look at the upstream changelogs to have an idea why our tests now fail) and luckily it seems to be in the 8.0.x range.

The issue is due to a change of the sequence in which tests are running.

test/py/tests/test_efi_bootmgr.py before test/py/tests/test_efi_secboot/*. With newer pytest it is running after the secure boot tests.

Cf.
[PATCH 1/1] test: uninstall PK after secboot tests
https://lore.kernel.org/u-boot/20251010205514.GG298503@bill-the-cat/T/#t

Best regards

Heinrich

author
#5 lore raw

PATCH v2 1/1 test/py: Update to a newer pytest release

In reply to Tom Rini

Our pytest package was pinned to a release from 2021. The minimum compatible with labgrid v25.0.x is pytest 7.0.0. Update to the current relase which is currently 8.4.2

---
Changes in v2:
- Depends on this patch from Heinrich that solves a problem 8.x.x exposed:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
- Update to 8.4.2 instead of 7.4.4 now

---
 test/py/requirements.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
test/py/requirements.txt +1 -1
index 804a427b3514..f9eac7901fbf 100644
@@ -1,5 +1,5 @@
 filelock==3.0.12
 pycryptodomex==3.21.0
-pytest==6.2.5
+pytest==8.4.2
 pytest-xdist==2.5.0
 FATtools==1.0.42
Signature · 1 line
2.43.0
author
#6 lore raw
Quoted 5 lines · Tom Rini

Our pytest package was pinned to a release from 2021. The minimum compatible with labgrid v25.0.x is pytest 7.0.0. Update to the current relase which is currently 8.4.2

Applied to u-boot/master, thanks!

[1/1] test/py: Update to a newer pytest release

      commit: bf1d8c1fec863b7da2f0d1ed4bd5526275d70dc2
Signature · 1 line
Tom