1b979d3d4SSimon Glass# Copyright (c) 2016 Google, Inc 2b979d3d4SSimon Glass# 3b979d3d4SSimon Glass# SPDX-License-Identifier: GPL-2.0+ 4b979d3d4SSimon Glass 5b979d3d4SSimon Glassimport pytest 6b979d3d4SSimon Glass 7*2028cc59SSimon GlassOF_PLATDATA_OUTPUT = '' 8b979d3d4SSimon Glass 9f60d0603SSimon Glass@pytest.mark.buildconfigspec('spl_of_platdata') 10b979d3d4SSimon Glassdef test_ofplatdata(u_boot_console): 11b979d3d4SSimon Glass """Test that of-platdata can be generated and used in sandbox""" 12b979d3d4SSimon Glass cons = u_boot_console 13b979d3d4SSimon Glass output = cons.get_spawn_output().replace('\r', '') 14b979d3d4SSimon Glass assert OF_PLATDATA_OUTPUT in output 15