xref: /openbmc/u-boot/test/py/tests/test_ofplatdata.py (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1# SPDX-License-Identifier: GPL-2.0+
2# Copyright (c) 2016 Google, Inc
3
4import pytest
5
6OF_PLATDATA_OUTPUT = ''
7
8@pytest.mark.buildconfigspec('spl_of_platdata')
9def test_ofplatdata(u_boot_console):
10    """Test that of-platdata can be generated and used in sandbox"""
11    cons = u_boot_console
12    output = cons.get_spawn_output().replace('\r', '')
13    assert OF_PLATDATA_OUTPUT in output
14