On Thu, Jan 11, 2024 at 06:12:25PM +0530, Love Kumar wrote: > Add test case for saveenv command in non-JTAG bootmode which saves the > u-boot environment variables in persistent storage. > > Signed-off-by: Love Kumar <[email protected]> [snip] > +# Setup the env > +def setup_saveenv_env(u_boot_console): > + if u_boot_console.config.env.get('env__saveenv_test_skip', False): > + pytest.skip('saveenv test is not enabled') > + > + output = u_boot_console.run_command('print modeboot') > + m = re.search('modeboot=(.+?)boot', output) > + if not m: > + pytest.skip('bootmode cannnot be determined') > + > + bootmode = m.group(1) > + if bootmode == 'jtag': > + pytest.skip('skipping saveenv test due to jtag bootmode')
This doesn't handle the case of "modeboot" being unset, which is how my hardware is. -- Tom
signature.asc
Description: PGP signature

