]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: qemu: fix width of top output in host dump
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Dec 2019 10:59:06 +0000 (23:59 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Dec 2019 09:04:38 +0000 (09:04 +0000)
commit07da998f5aa6c3f5ffeee5150fc579e8a1051ba4
tree7a9527fe817c3d00011d63e5cb70f3a829209017
parent3f6dcf67bccb4f0fc1a9a64e02bd0e2da620ad0e
oeqa: qemu: fix width of top output in host dump

If runqemu fails, there is some logic to run a set of commands to dump
various bits of information that might help debug the issue
(particularly in a busy situation such as on the autobuilder). One of
those commands is "top -bn1", however top restricts the output to the
width of the calling terminal, and for whatever reason this is a little
restrictive when called from inside testimage, so set COLUMNS in the
environment to a high value to fix it. (Another way is to use the -w
option, but that is not supported by our default busybox configuration
so it will then fail when this same list of commands is used on the
target).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/utils/dump.py