Thread (1 message) 1 message, 1 author, 2021-05-24

Re: [OE-core] [PATCH v3 4/5] oeqa/selftest/cases/rust.py: Rust oe-selftest script.

From: Vinay Kumar <hidden>
Date: 2021-05-24 17:25:20

Hi Alex,

I have sent the v4 version of patches with "do_check" functionality
included in "rust.py"
Also, verified for qemuarm64 target with fresh run.

Please let me know in case of any corrections.

Regards,
Vinay

On Mon, May 24, 2021 at 10:42 AM Vinay Kumar via
lists.openembedded.org [off-list ref]
wrote:
Hi Alex,

I made changes as you suggested, getting expected results.
Verifying with a fresh run. Will send the final patch for review.

Regards,
Vinay

On Sat, May 22, 2021 at 10:04 PM Alexander Kanavin
[off-list ref] wrote:
quoted
On Fri, 21 May 2021 at 15:29, Vinay Kumar [off-list ref] wrote:
quoted
+                       # 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help