On Thu, 31 Oct 2024 at 03:46, Khem Raj <[email protected]> wrote:
> >   File 
> > "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/wic.py",
> >  line 877, in test_wic_sector_size
> >     res = runCmd("export PARTED_SECTOR_SIZE=%d; parted -m %s unit b p 
> > 2>/dev/null" % (wic_sector_size, images[0]))
> >   File 
> > "/srv/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py",
> >  line 212, in runCmd
> >     raise AssertionError("Command '%s' returned non-zero exit status 
> > %d:\n%s" % (command, result.status, exc_output))
> > AssertionError: Command 'export PARTED_SECTOR_SIZE=4096; parted -m 
> > /srv/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-3537958/wic-tmp/tmpr6vrw11i-202410301331-sda.direct
> >  unit b p 2>/dev/null' returned non-zero exit status 127:
> >
>
> perhaps make it
> PARTED_SECTOR_SIZE=%d parted -s %s mklabel %s" % (self.sector_size,
> device, ptable_format), self.native_sysroot)

I tried this (dropping 2>/dev/null), and indeed the error is no longer obscured:

AssertionError: Command 'export PARTED_SECTOR_SIZE=4096; parted -m
/home/akanavin/poky/build-st/wic-tmp/tmprac0npku-202410311007-sda.direct
unit b p' returned non-zero exit status 127:
/bin/sh: 1: parted: not found

So basically the test forgets to adjust the PATH to include wic-tools,
like others wic tests (that need to run parted) do. Some build hosts
have it, others don't, so the error is intermittent.

Also if you can (in a separate commit) drop all usage of this
"2>/dev/null" pattern in wic tests that only harms fail diagnostics,
that would be helpful.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206572): 
https://lists.openembedded.org/g/openembedded-core/message/206572
Mute This Topic: https://lists.openembedded.org/mt/109308684/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to