summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2025-07-25 13:42:14 -0600
committerTom Rini <trini@konsulko.com>2025-08-04 18:23:13 -0600
commit12a94b894dec1b682068e70cd9cc11147242f70d (patch)
treea4f54b8129ea7339858d4bf25b52b11762f9e883
parent851c3f28d00bf0e106487db3c18ab2a6a6bafb5c (diff)
test: py: test_fit_mkimage_validate: Only run either test on sandbox
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@konsulko.com>
-rw-r--r--test/py/tests/test_fit_mkimage_validate.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/py/tests/test_fit_mkimage_validate.py b/test/py/tests/test_fit_mkimage_validate.py
index ef974c8c762..170b2a8cbbb 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
+@pytest.mark.boardspec('sandbox')
+@pytest.mark.requiredtool('dtc')
def test_fit_invalid_default_config(ubman):
"""Test that mkimage fails when default config is missing"""