diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/testimage.bbclass | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 6864eeed2f..0241f29dfb 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
| @@ -101,36 +101,12 @@ TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/" | |||
| 101 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" | 101 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" |
| 102 | 102 | ||
| 103 | testimage_dump_target () { | 103 | testimage_dump_target () { |
| 104 | top -bn1 | ||
| 105 | ps | ||
| 106 | free | ||
| 107 | df | ||
| 108 | # The next command will export the default gateway IP | ||
| 109 | export DEFAULT_GATEWAY=$(ip route | awk '/default/ { print $3}') | ||
| 110 | ping -c3 $DEFAULT_GATEWAY | ||
| 111 | dmesg | ||
| 112 | netstat -an | ||
| 113 | ip address | ||
| 114 | # Next command will dump logs from /var/log/ | ||
| 115 | find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; | ||
| 116 | } | 104 | } |
| 117 | 105 | ||
| 118 | testimage_dump_host () { | 106 | testimage_dump_host () { |
| 119 | top -bn1 | ||
| 120 | iostat -x -z -N -d -p ALL 20 2 | ||
| 121 | ps -ef | ||
| 122 | free | ||
| 123 | df | ||
| 124 | memstat | ||
| 125 | dmesg | ||
| 126 | ip -s link | ||
| 127 | netstat -an | ||
| 128 | } | 107 | } |
| 129 | 108 | ||
| 130 | testimage_dump_monitor () { | 109 | testimage_dump_monitor () { |
| 131 | query-status | ||
| 132 | query-block | ||
| 133 | dump-guest-memory {"paging":false,"protocol":"file:%s.img"} | ||
| 134 | } | 110 | } |
| 135 | 111 | ||
| 136 | python do_testimage() { | 112 | python do_testimage() { |
