| Summary: | Add support for retrieve target system status when test fails | ||
|---|---|---|---|
| Product: | [QA/Testing] Runtime Testing | Reporter: | Aníbal Limón <anibal.limon> |
| Component: | general | Assignee: | Mariano Lopez <mariano.lopez> |
| Status: | VERIFIED FIXED | QA Contact: | Daniel Istrate <daniel.alexandrux.istrate> |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | bogdanx.a.voiculescu, daniel.alexandrux.istrate, mariano.lopez |
| Version: | 1.9 | ||
| Target Milestone: | 1.9 M3 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
| Bug Depends on: | |||
| Bug Blocks: | 8176 | ||
|
Description
Aníbal Limón
2015-08-06 18:18:25 UTC
Currently the console for the QemuRunner class is only used to check if the target booted, there is need to implement a method to allow communication on the target using the console. Sent some patches for review, currently the commands and dump dir location are harcoded in oeRuntimeTest, however this is not the best approach. I will send another series of patches to have the ability to customize these on the testimage class Sent a patch that fixed some issues in the last batch of patches Hi, These patches break functionality for running testimage on real hardware (#8203) Thanks, --Daniel Sent patches that also fix the regression issue with real hardware. http://lists.openembedded.org/pipermail/openembedded-core/2015-August/109376.html Patches to fix the regression to test on real hardware were accepted on now are in master in commit: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=277571bbd0a7864e996fad5acd3a10d31c84fdbd Sent patch to make compatible run exported test with HostDumper. http://lists.openembedded.org/pipermail/openembedded-core/2015-August/109714.html These are the changes that were introduced when solved this bug:
There are new classes in oeqa/utils named HostDumper and TargetDumper. These would run commands on the host or target and save the output.
It was added the capability to run commands in the qemu target using the serial console.
When qemu ends unexpectedly it will get the dumps from the host running qemu.
There are 3 new bitbake vars that would define where and what commands to dump, these vars are:
- TESTIMAGE_DUMP_DIR
- testimage_dump_target
- testimage_dump_host
It was solved the break with the real hardware.
This bug has been solved with the following commits: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=78e1c4f146e8536513ff3301f054e66c2fea00a4 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a5bfa110f6bb24523bf78718552cb092d507bab6 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c0c463be28b731606f727ba85617c73796c05eab http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=51d8e8fb370ae5eb9ebaff722c181a693a7f4ca1 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9c72c1a5aa0b49d3895bbefee7a264adfcc6f4ca http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=857da0884a645517e69407a8eafd0c33111ab8a3 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=48373be8303b620fbddda3298e4eb0c8d188f7dc http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=85fd1a7a121daffc3c5c530930f832ecc61ef83d http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=097f36f636a624a9cf3f04780000671d7bc3df50 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c78ba0d4f072e1606e9934823138d9302cc49ab8 http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=277571bbd0a7864e996fad5acd3a10d31c84fdbd http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=53ab41a5f6d20e911362a9261ae528452bb71bbd http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a2b0d0423555e9b386f1a7bb620837c23be3854e Verified on master: eac61f37e36099f74485dab398b57f3812826d17 Steps to verify: 1. Add to local.conf: TESTIMAGE_DUMP_DIR = "test_folder" testimage_dump_host = "10.237.112.240" testimage_dump_target = "192.168.7.2" INHERIT += "testimage" TEST_SUITES = "auto" 2. bitbake core-image-sato-sdk -c testimage 3. When tests fail "test_folder" will hold information about host & target such as ps, df, dmesg,netstat, top etc |