On Fri, 21 May 2021 at 15:29, Vinay Kumar <[email protected]> wrote:

> +                       # Set TEST_DEVICE_ADDR to image ip
> +                       cmd  = "export TEST_DEVICE_ADDR=%s:12345;" %
> qemu.ip
> +                       runCmd(cmd)
> +
> +                        # Test execution
> +                       bitbake("{} -c check".format(recipe))
> +                       # Stop ssh background execution
> +                       t_thread.stop()
>
>
TEST_DEVICE_ADDR set this way will not propagate into the task environment.
The task itself consists only of:

do_check () {

    rust_runx test --no-fail-fast --bless --target "${TARGET_SYS}" >
summary.txt 2> /dev/null
}

so you can simply move that directly into selftest:

runCmd("export TEST_DEVICE_ADDR=%s:12345 rust_runx test --no-fail-fast
--bless --target "%s"" %(....))

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

Reply via email to