dm: test: Drop of-platdata pytest
[platform/kernel/u-boot.git] / test / py / tests / test_ofplatdata.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3
4 import pytest
5 import u_boot_utils as util
6
7 @pytest.mark.buildconfigspec('spl_of_platdata')
8 def test_spl_devicetree(u_boot_console):
9     """Test content of spl device-tree"""
10     cons = u_boot_console
11     dtb = cons.config.build_dir + '/spl/u-boot-spl.dtb'
12     fdtgrep = cons.config.build_dir + '/tools/fdtgrep'
13     output = util.run_and_log(cons, [fdtgrep, '-l', dtb])
14
15     assert "u-boot,dm-pre-reloc" not in output
16     assert "u-boot,dm-pre-proper" not in output
17     assert "u-boot,dm-spl" not in output
18     assert "u-boot,dm-tpl" not in output
19
20     assert "spl-test4" in output
21     assert "spl-test5" not in output
22     assert "spl-test6" not in output
23     assert "spl-test7" in output