diff options
author | Thomas Roos <throos@amazon.de> | 2023-05-17 16:36:13 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-29 10:57:27 +0100 |
commit | f82c3bd37d62a3efc49fd33efa38a7f523e6c676 (patch) | |
tree | af91e742b938e4116a5082bfb9351dba83616cca /meta/classes-recipe/testimage.bbclass | |
parent | 303421dce02fec67daab0dc86d85e11963d5741f (diff) | |
download | poky-f82c3bd37d62a3efc49fd33efa38a7f523e6c676.tar.gz |
testimage/oeqa: Drop testimage_dump_host functionality
The intent behind these functions was to dump the system state when issues occured
but it has never really worked as we'd planned. Regular monitoring as the build
runs has largely replaced this as that allows a trend to be seen rather than a spot
value which was never really useful. The code is bitrotting and not functioning
correctly so drop it.
[YOCTO #13872]
RP: Reword commit message
(From OE-Core rev: dea37ba49a236029da73d5cfbfc069bffc38b508)
Signed-off-by: Thomas Roos <throos@amazon.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes-recipe/testimage.bbclass')
-rw-r--r-- | meta/classes-recipe/testimage.bbclass | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 0f02eadf57..e3068348ff 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass | |||
@@ -124,18 +124,6 @@ testimage_dump_target () { | |||
124 | find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; | 124 | find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; |
125 | } | 125 | } |
126 | 126 | ||
127 | testimage_dump_host () { | ||
128 | top -bn1 | ||
129 | iostat -x -z -N -d -p ALL 20 2 | ||
130 | ps -ef | ||
131 | free | ||
132 | df | ||
133 | memstat | ||
134 | dmesg | ||
135 | ip -s link | ||
136 | netstat -an | ||
137 | } | ||
138 | |||
139 | testimage_dump_monitor () { | 127 | testimage_dump_monitor () { |
140 | query-status | 128 | query-status |
141 | query-block | 129 | query-block |
@@ -381,19 +369,13 @@ def testimage_main(d): | |||
381 | # runtime use network for download projects for build | 369 | # runtime use network for download projects for build |
382 | export_proxies(d) | 370 | export_proxies(d) |
383 | 371 | ||
384 | # we need the host dumper in test context | ||
385 | host_dumper = OERuntimeTestContextExecutor.getHostDumper( | ||
386 | d.getVar("testimage_dump_host"), | ||
387 | d.getVar("TESTIMAGE_DUMP_DIR")) | ||
388 | |||
389 | # the robot dance | 372 | # the robot dance |
390 | target = OERuntimeTestContextExecutor.getTarget( | 373 | target = OERuntimeTestContextExecutor.getTarget( |
391 | d.getVar("TEST_TARGET"), logger, d.getVar("TEST_TARGET_IP"), | 374 | d.getVar("TEST_TARGET"), logger, d.getVar("TEST_TARGET_IP"), |
392 | d.getVar("TEST_SERVER_IP"), **target_kwargs) | 375 | d.getVar("TEST_SERVER_IP"), **target_kwargs) |
393 | 376 | ||
394 | # test context | 377 | # test context |
395 | tc = OERuntimeTestContext(td, logger, target, host_dumper, | 378 | tc = OERuntimeTestContext(td, logger, target, image_packages, extract_dir) |
396 | image_packages, extract_dir) | ||
397 | 379 | ||
398 | # Load tests before starting the target | 380 | # Load tests before starting the target |
399 | test_paths = get_runtime_paths(d) | 381 | test_paths = get_runtime_paths(d) |