mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-31 02:01:16 +00:00
1b0799bcc5
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>