diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2019-12-09 16:03:11 +1300 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2019-12-09 23:54:56 +1300 |
commit | 0c52b603369d48178844dbe2a9ebad170aaffd48 (patch) | |
tree | 82722a24eeb07cdb836d861ddd37a99ec3ff5551 | |
parent | d8f838d56a2e4503e17508092c351c8b9fb86106 (diff) | |
download | openembedded-core-contrib-0c52b603369d48178844dbe2a9ebad170aaffd48.tar.gz |
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>
-rw-r--r-- | meta/lib/oeqa/utils/dump.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py index 6594e286a4..09a44329e0 100644 --- a/meta/lib/oeqa/utils/dump.py +++ b/meta/lib/oeqa/utils/dump.py @@ -73,6 +73,7 @@ class HostDumper(BaseDumper): self.dump_dir = dump_dir env = os.environ.copy() env['PATH'] = '/usr/sbin:/sbin:/usr/bin:/bin' + env['COLUMNS'] = '9999' for cmd in self.cmds: result = runCmd(cmd, ignore_status=True, env=env) self._write_dump(cmd.split()[0], result.output) |