1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 02:01:16 +00:00
Aníbal Limón 1b0799bcc5 wlauto/utils/ssh.py: Fix set terminal window size
Ensure that the terminal window size is set to 500x200, if not long
commands (prompt + command > 80 chars) will fail because the pexpect
search to match the command string in order to get the result and the
command is wrapped to first 80 chars.

For example, when check a file and executes:

...
if [ -f '/sys/kernel/debug/sched_features' ]; then echo 1; else echo 0; fi
...
File
\"/usr/local/lib/python2.7/dist-packages/wlauto/common/linux/device.py\",
line 228, in get_properties
if self.is_file(propfile):
File
\"/usr/local/lib/python2.7/dist-packages/wlauto/common/linux/device.py\",
line 215, in is_file
return boolean(output.split()[-1])  # pylint: disable=maybe-no-member

IndexError(list index out of range)
...

In order to fix this scenario enables checkwinsize in the shell and use
stty to set the new terminal window size.

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
2018-04-16 14:16:06 +01:00
..
2016-07-21 16:40:26 +01:00
2016-07-21 16:40:26 +01:00
2016-07-21 16:40:26 +01:00
2016-07-21 16:40:26 +01:00
2015-06-29 11:34:49 +01:00
2017-02-03 15:14:16 +00:00
2016-05-10 09:27:42 +01:00
2015-12-09 16:52:39 +00:00
2016-07-21 16:40:26 +01:00
2016-07-21 16:40:26 +01:00
2017-09-05 14:55:56 +01:00
2016-07-21 16:40:26 +01:00