diff options
| author | Tom Rini <[email protected]> | 2023-01-19 09:41:54 -0500 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-01-19 09:41:54 -0500 |
| commit | 7aec35be4b5fa7aabc0ece03dc8825495d86a1be (patch) | |
| tree | 483d9f85e8184cb91f00e3345391bff13eee580a /test/py | |
| parent | 5b958dea5c678dbdb2aeb6ac3c0c8cc8dfea065c (diff) | |
| parent | ace75d642fa71034b248cde30709c79e06c52d61 (diff) | |
Merge branch '2022-01-18-assorted-updates'
- A few TI platform fixes, compression test cleanup and zstd update,
npcm7xx update, add "part type" subcommand, VBE bugfix on some
platforms, cleanup EVENT related Kconfig option logic (and fix some
platforms), other minor cleanups.
Diffstat (limited to 'test/py')
| -rw-r--r-- | test/py/tests/test_gpt.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/py/tests/test_gpt.py b/test/py/tests/test_gpt.py index cb44e1d7896..73bfbf77a27 100644 --- a/test/py/tests/test_gpt.py +++ b/test/py/tests/test_gpt.py @@ -136,6 +136,29 @@ def test_gpt_save_guid(state_disk_image, u_boot_console): @pytest.mark.boardspec('sandbox') @pytest.mark.buildconfigspec('cmd_gpt') [email protected]('sgdisk') +def test_gpt_part_type_uuid(state_disk_image, u_boot_console): + """Test the gpt partittion type UUID command.""" + + u_boot_console.run_command('host bind 0 ' + state_disk_image.path) + output = u_boot_console.run_command('part type host 0:1') + assert '0fc63daf-8483-4772-8e79-3d69d8477de4' in output + [email protected]('sandbox') [email protected]('cmd_gpt') [email protected]('sgdisk') +def test_gpt_part_type_save_uuid(state_disk_image, u_boot_console): + """Test the gpt partittion type to save UUID into a string.""" + + if u_boot_console.config.buildconfig.get('config_cmd_gpt', 'n') != 'y': + pytest.skip('gpt command not supported') + u_boot_console.run_command('host bind 0 ' + state_disk_image.path) + output = u_boot_console.run_command('part type host 0:1 newguid') + output = u_boot_console.run_command('printenv newguid') + assert '0fc63daf-8483-4772-8e79-3d69d8477de4' in output + [email protected]('sandbox') [email protected]('cmd_gpt') @pytest.mark.buildconfigspec('cmd_gpt_rename') @pytest.mark.buildconfigspec('cmd_part') @pytest.mark.requiredtool('sgdisk') |
