mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 14:00:19 +00:00 
			
		
		
		
	This test checks for output specific to the sandbox blk device "sandbox_host_blk", mark it as sandbox specific. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			465 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			465 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# SPDX-License-Identifier: GPL-2.0+
 | 
						|
# Copyright (C) 2020
 | 
						|
# Niel Fourie, DENX Software Engineering, lusus@denx.de
 | 
						|
 | 
						|
import pytest
 | 
						|
 | 
						|
@pytest.mark.boardspec('sandbox')
 | 
						|
@pytest.mark.buildconfigspec('blk')
 | 
						|
@pytest.mark.buildconfigspec('cmd_lsblk')
 | 
						|
def test_lsblk(u_boot_console):
 | 
						|
    """Test that `lsblk` prints a result which includes `host`."""
 | 
						|
    output = u_boot_console.run_command('lsblk')
 | 
						|
    assert "Block Driver" in output
 | 
						|
    assert "sandbox_host_blk" in output
 |