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