test/py: Drop assigning ubman to cons

Now that we have a shorter name, we don't need this sort of thing. Just
use ubman instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-02-09 09:07:17 -07:00
parent dd693ecb60
commit d08653d369
27 changed files with 436 additions and 468 deletions

View File

@@ -91,10 +91,9 @@ ut bootstd -f vbe_test_fixup_norun
@pytest.mark.boardspec('sandbox_flattree')
@pytest.mark.requiredtool('dtc')
def test_vbe(ubman):
cons = ubman
kernel = fit_util.make_kernel(cons, 'vbe-kernel.bin', 'kernel')
fdt = fit_util.make_dtb(cons, base_fdt, 'vbe-fdt')
fdt_out = fit_util.make_fname(cons, 'fdt-out.dtb')
kernel = fit_util.make_kernel(ubman, 'vbe-kernel.bin', 'kernel')
fdt = fit_util.make_dtb(ubman, base_fdt, 'vbe-fdt')
fdt_out = fit_util.make_fname(ubman, 'fdt-out.dtb')
params = {
'fit_addr' : 0x1000,
@@ -108,13 +107,13 @@ def test_vbe(ubman):
'compression' : 'none',
}
mkimage = cons.config.build_dir + '/tools/mkimage'
fit = fit_util.make_fit(cons, mkimage, base_its, params, 'test-vbe.fit',
mkimage = ubman.config.build_dir + '/tools/mkimage'
fit = fit_util.make_fit(ubman, mkimage, base_its, params, 'test-vbe.fit',
base_fdt)
params['fit'] = fit
cmd = base_script % params
with cons.log.section('Kernel load'):
output = cons.run_command_list(cmd.splitlines())
with ubman.log.section('Kernel load'):
output = ubman.run_command_list(cmd.splitlines())
assert 'failures: 0' in output[-1]