diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2019-12-09 23:59:06 +1300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-15 09:10:46 +0000 |
commit | c4d247ff7c25430892ae976091dfee8979a6ad6e (patch) | |
tree | 034ee2e9a6b19a5ea41ceaece78e511a0f9d91df /meta/lib/oeqa/utils | |
parent | f0f8714238d3d9d293a80c9e4ecb759e7483dc51 (diff) | |
download | poky-c4d247ff7c25430892ae976091dfee8979a6ad6e.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).
(From OE-Core rev: 07da998f5aa6c3f5ffeee5150fc579e8a1051ba4)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/utils')
-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): | |||
73 | self.dump_dir = dump_dir | 73 | self.dump_dir = dump_dir |
74 | env = os.environ.copy() | 74 | env = os.environ.copy() |
75 | env['PATH'] = '/usr/sbin:/sbin:/usr/bin:/bin' | 75 | env['PATH'] = '/usr/sbin:/sbin:/usr/bin:/bin' |
76 | env['COLUMNS'] = '9999' | ||
76 | for cmd in self.cmds: | 77 | for cmd in self.cmds: |
77 | result = runCmd(cmd, ignore_status=True, env=env) | 78 | result = runCmd(cmd, ignore_status=True, env=env) |
78 | self._write_dump(cmd.split()[0], result.output) | 79 | self._write_dump(cmd.split()[0], result.output) |