diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2015-08-24 20:25:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-30 12:34:40 +0100 |
commit | 384927eb8d52bc5f14c63c8421aa62ee859587f0 (patch) | |
tree | 01ef92ce5698d2a6337f2f2082436a144be564b0 /meta/classes/testimage.bbclass | |
parent | ad10af6be343b5425fde43055263b0744c161cb3 (diff) | |
download | openembedded-core-384927eb8d52bc5f14c63c8421aa62ee859587f0.tar.gz openembedded-core-384927eb8d52bc5f14c63c8421aa62ee859587f0.tar.bz2 openembedded-core-384927eb8d52bc5f14c63c8421aa62ee859587f0.zip |
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]
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r-- | meta/classes/testimage.bbclass | 7 |
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 () { ps free df - _ping + # The next command will export the default gateway IP + export DEFAULT_GATEWAY=$(ip route | awk '/default/ { print $3}') + ping -c3 $DEFAULT_GATEWAY dmesg netstat -an ip address - _logs + # Next command will dump logs from /var/log/ + find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; } testimage_dump_host () { |