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: 93d09d3bd8 ("test: fit: add test case for invalid default configuration reference")
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2025-07-25 13:42:14 -06:00
parent 851c3f28d0
commit 12a94b894d

View File

@ -57,6 +57,8 @@ def test_fit_invalid_image_reference(ubman):
assert result.returncode != 0, "mkimage should fail due to missing image reference" assert result.returncode != 0, "mkimage should fail due to missing image reference"
assert "references undefined image 'notexist'" in result.stderr assert "references undefined image 'notexist'" in result.stderr
@pytest.mark.boardspec('sandbox')
@pytest.mark.requiredtool('dtc')
def test_fit_invalid_default_config(ubman): def test_fit_invalid_default_config(ubman):
"""Test that mkimage fails when default config is missing""" """Test that mkimage fails when default config is missing"""