Hi Alex,

Yes, I have submitted a commit to add wic-tools into the PATH.
https://lists.openembedded.org/g/openembedded-core/message/206607

Thanks,
Vince

From: Alexander Kanavin <[email protected]>
Sent: Friday, November 1, 2024 3:39 PM
To: Vince Chang <[email protected]>
Cc: Richard Purdie <[email protected]>; 
[email protected]; Jamin Lin <[email protected]>; 
Troy Lee <[email protected]>; Khem Raj <[email protected]>
Subject: Re: [OE-core] [PATCH v2 0/2] wic support different sector size

Thanks! But you should still fix the original fail I think?

Alex

On Fri 1. Nov 2024 at 8.37, Vince Chang 
<[email protected]<mailto:[email protected]>> wrote:
Hi Alex,

On Fri, 1 Nov 2024 at 12:32 PM, Alexander Kanavin wrote:
> Anyway, implementation runCmd() indeed defaults to stderr being
> redirected and appended to stdout, so the standard stream and the
> error stream are mashed together.
>
> To avoid that, you should also set stderr=subprocess.PIPE when calling
> runCmd(). Check meta/lib/oeqa/selftest/cases/runcmd.py for examples:
>
>     def test_output(self):
>         result = runCmd("echo stdout; echo stderr >&2", shell=True,
> sync=False)
>         self.assertEqual("stdout\nstderr", result.output)
>         self.assertEqual("", result.error)
>
>     def test_output_split(self):
>         result = runCmd("echo stdout; echo stderr >&2", shell=True,
> stderr=subprocess.PIPE, sync=False)
>         self.assertEqual("stdout", result.output)
>         self.assertEqual("stderr", result.error)

I didn't realize that stderr=subprocess.PIPE could be used. I've submitted a 
separate commit.
https://lists.openembedded.org/g/openembedded-core/message/206602

Thanks,
Vince
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206608): 
https://lists.openembedded.org/g/openembedded-core/message/206608
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