selftest: wic: Remove requirement of syslinux from test_rawcopy_plugin

Remove bootimg-pcbios from wks to eliminate requirement of syslinux from
test_rawcopy_plugin to avoid the following error.

ERROR: Couldn't find correct bootimg_dir, exiting

(From OE-Core rev: 99e2321e049fa63b83f3daa076eeff7f6791986b)

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Stefan Herbrechtsmeier 2022-02-14 16:45:19 +01:00 committed by Richard Purdie
parent 0c20edddfc
commit b709e926d3

View File

@ -1070,10 +1070,8 @@ class Wic2(WicTestCase):
img = 'core-image-minimal'
machine = get_bb_var('MACHINE', img)
with NamedTemporaryFile("w", suffix=".wks") as wks:
wks.writelines(['part /boot --active --source bootimg-pcbios\n',
'part / --source rawcopy --sourceparams="file=%s-%s.ext4" --use-uuid\n'\
% (img, machine),
'bootloader --timeout=0 --append="console=ttyS0,115200n8"\n'])
wks.write('part / --source rawcopy --sourceparams="file=%s-%s.ext4"\n'\
% (img, machine))
wks.flush()
cmd = "wic create %s -e %s -o %s" % (wks.name, img, self.resultdir)
runCmd(cmd)