test: py: tests: test_gpt.py: add a simple test for the command gpt repair
Adds a simple test for the command gpt repair. Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
This commit is contained in:
parent
26f404c766
commit
b6b6a90646
@ -98,6 +98,16 @@ def test_gpt_verify(state_disk_image, u_boot_console):
|
||||
output = u_boot_console.run_command('gpt verify host 0')
|
||||
assert 'Verify GPT: success!' in output
|
||||
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
@pytest.mark.buildconfigspec('cmd_gpt')
|
||||
@pytest.mark.requiredtool('sgdisk')
|
||||
def test_gpt_repair(state_disk_image, u_boot_console):
|
||||
"""Test the gpt repair command."""
|
||||
|
||||
u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
|
||||
output = u_boot_console.run_command('gpt repair host 0')
|
||||
assert 'Repairing GPT: success!' in output
|
||||
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
@pytest.mark.buildconfigspec('cmd_gpt')
|
||||
@pytest.mark.requiredtool('sgdisk')
|
||||
|
Loading…
Reference in New Issue
Block a user