• Home
  • Raw
  • Download

Lines Matching +full:write +full:- +full:host

1 # SPDX-License-Identifier: GPL-2.0
23 u_boot_console: A U-Boot console.
43 cmd = ('sgdisk', '-U', '375a56f7-d6c9-4e81-b5f0-09d41ca89efe',
47 cmd = ('sgdisk', '--new=1:2048:4095', '-c 1:part1', persistent)
50 cmd = ('sgdisk', '--new=2:4096:7167', '-c 2:part2', persistent)
52 cmd = ('sgdisk', '-l', persistent)
62 This is function-scoped because it uses u_boot_console, which is also
63 function-scoped. However, we don't need to actually do any function-scope
78 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
79 output = u_boot_console.run_command('gpt read host 0')
84 output = u_boot_console.run_command('part list host 0')
94 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
95 output = u_boot_console.run_command('gpt verify host 0')
104 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
105 output = u_boot_console.run_command('gpt guid host 0')
106 assert '375a56f7-d6c9-4e81-b5f0-09d41ca89efe' in output
116 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
117 output = u_boot_console.run_command('gpt guid host 0 newguid')
119 assert '375a56f7-d6c9-4e81-b5f0-09d41ca89efe' in output
127 """Test the gpt rename command to write partition names."""
129 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
130 u_boot_console.run_command('gpt rename host 0 1 first')
131 output = u_boot_console.run_command('gpt read host 0')
133 u_boot_console.run_command('gpt rename host 0 2 second')
134 output = u_boot_console.run_command('gpt read host 0')
136 output = u_boot_console.run_command('part list host 0')
148 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
149 output = u_boot_console.run_command('part list host 0')
152 u_boot_console.run_command('gpt swap host 0 first second')
153 output = u_boot_console.run_command('part list host 0')
162 """Test the gpt write command."""
164 u_boot_console.run_command('host bind 0 ' + state_disk_image.path)
165 output = u_boot_console.run_command('gpt write host 0 "name=all,size=0"')
167 output = u_boot_console.run_command('part list host 0')
169 …output = u_boot_console.run_command('gpt write host 0 "uuid_disk=375a56f7-d6c9-4e81-b5f0-09d41ca89…
171 output = u_boot_console.run_command('part list host 0')
174 output = u_boot_console.run_command('gpt guid host 0')
175 assert '375a56f7-d6c9-4e81-b5f0-09d41ca89efe' in output