diff options
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) |