test_handoff.py 488 B

123456789101112131415
  1. # SPDX-License-Identifier: GPL-2.0+
  2. # Copyright (c) 2016 Google, Inc
  3. import pytest
  4. # Magic number to check that SPL handoff is working
  5. TEST_HANDOFF_MAGIC = 0x14f93c7b
  6. @pytest.mark.boardspec('sandbox_spl')
  7. @pytest.mark.buildconfigspec('spl')
  8. def test_handoff(u_boot_console):
  9. """Test that of-platdata can be generated and used in sandbox"""
  10. cons = u_boot_console
  11. response = cons.run_command('sb handoff')
  12. assert ('SPL handoff magic %x' % TEST_HANDOFF_MAGIC) in response