diff options
author | Philippe Reynes <philippe.reynes@softathome.com> | 2022-04-22 17:46:50 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-06 14:39:15 -0400 |
commit | b6b6a906469ab11f460b493a5ecca8160393bfad (patch) | |
tree | ea1703c0f8b9e635cd742a7a952d7b60bbcc8648 /test | |
parent | 26f404c7665265946305f2883cfad1b785d35bb2 (diff) | |
download | u-boot-b6b6a906469ab11f460b493a5ecca8160393bfad.tar.gz u-boot-b6b6a906469ab11f460b493a5ecca8160393bfad.tar.bz2 u-boot-b6b6a906469ab11f460b493a5ecca8160393bfad.zip |
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>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_gpt.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/py/tests/test_gpt.py b/test/py/tests/test_gpt.py index 229d7eb2c2..f707d9f253 100644 --- a/test/py/tests/test_gpt.py +++ b/test/py/tests/test_gpt.py @@ -101,6 +101,16 @@ def test_gpt_verify(state_disk_image, u_boot_console): @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') def test_gpt_guid(state_disk_image, u_boot_console): """Test the gpt guid command.""" |