cmd: gpio: Make `gpio input` return pin value again
[oweals/u-boot.git] / test / py / tests / test_handoff.py
1 # SPDX-License-Identifier: GPL-2.0+
2 # Copyright (c) 2016 Google, Inc
3
4 import pytest
5
6 # Magic number to check that SPL handoff is working
7 TEST_HANDOFF_MAGIC = 0x14f93c7b
8
9 @pytest.mark.boardspec('sandbox_spl')
10 @pytest.mark.buildconfigspec('spl')
11 def test_handoff(u_boot_console):
12     """Test that of-platdata can be generated and used in sandbox"""
13     cons = u_boot_console
14     response = cons.run_command('sb handoff')
15     assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response