summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2015-08-24 20:25:46 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 12:36:13 +0100
commitc78ba0d4f072e1606e9934823138d9302cc49ab8 (patch)
tree50a55070c1f5c691bc3f5648bc559d183d841cd4 /meta/classes/testimage.bbclass
parent85fd1a7a121daffc3c5c530930f832ecc61ef83d (diff)
downloadpoky-c78ba0d4f072e1606e9934823138d9302cc49ab8.tar.gz
dump: allow to have datastore vars on dump commands
This allows to have datastore variables in the dump commands and will get the data when a new instance it's created. Also this remove special cases from the commands. [YOCTO #8118] (From OE-Core rev: 384927eb8d52bc5f14c63c8421aa62ee859587f0) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 824b47f5dd..82cb0110e3 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -63,11 +63,14 @@ testimage_dump_target () {
63 ps 63 ps
64 free 64 free
65 df 65 df
66 _ping 66 # The next command will export the default gateway IP
67 export DEFAULT_GATEWAY=$(ip route | awk '/default/ { print $3}')
68 ping -c3 $DEFAULT_GATEWAY
67 dmesg 69 dmesg
68 netstat -an 70 netstat -an
69 ip address 71 ip address
70 _logs 72 # Next command will dump logs from /var/log/
73 find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
71} 74}
72 75
73testimage_dump_host () { 76testimage_dump_host () {