[PATCH] test: py: test_fit_mkimage_validate: Only run either test on sandbox
Tom Rini
trini at konsulko.com
Fri Jul 25 21:42:14 CEST 2025
Both of these tests are only valid for sandbox (and require dtc) so both
tests need the pytest annotations.
Fixes 93d09d3bd8ea ("test: fit: add test case for invalid default configuration reference")
Signed-off-by: Tom Rini <trini at konsulko.com>
---
test/py/tests/test_fit_mkimage_validate.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/test/py/tests/test_fit_mkimage_validate.py b/test/py/tests/test_fit_mkimage_validate.py
index ef974c8c7622..170b2a8cbbb6 100644
--- a/test/py/tests/test_fit_mkimage_validate.py
+++ b/test/py/tests/test_fit_mkimage_validate.py
@@ -57,6 +57,8 @@ def test_fit_invalid_image_reference(ubman):
assert result.returncode != 0, "mkimage should fail due to missing image reference"
assert "references undefined image 'notexist'" in result.stderr
+ at pytest.mark.boardspec('sandbox')
+ at pytest.mark.requiredtool('dtc')
def test_fit_invalid_default_config(ubman):
"""Test that mkimage fails when default config is missing"""
--
2.43.0
More information about the U-Boot
mailing list