]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: py: test_fit_mkimage_validate: Only run either test on sandbox
authorTom Rini <trini@konsulko.com>
Fri, 25 Jul 2025 19:42:14 +0000 (13:42 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 5 Aug 2025 00:23:13 +0000 (18:23 -0600)
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>
test/py/tests/test_fit_mkimage_validate.py

index ef974c8c76227762125988cc7e88feca7d27592b..170b2a8cbbb6451091a66381dbb94967a4e36464 100644 (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 "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"""