diff options
author | Ricardo Martincoski <ricardo.martincoski@gmail.com> | 2017-06-28 23:45:43 -0300 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-07-01 16:05:14 +0200 |
commit | e664c5f71c9614b991b13225809772eaea4a3dc5 (patch) | |
tree | ecdb5a638ef4a538fbba69e084bedf3b988ae727 /support/testing/infra/basetest.py | |
parent | 8ebc2278067eb99a25ce3098867f1f613ab50c7f (diff) | |
download | buildroot-e664c5f71c9614b991b13225809772eaea4a3dc5.tar.gz buildroot-e664c5f71c9614b991b13225809772eaea4a3dc5.zip |
support/testing: let pexpect write stdout to log
When the parameter logfile is passed to spawn(), pexpect sends both
stdin and stdout to the logfile and it creates a double echo effect.
One way to avoid the double echo in the logfile would be to disable the
echo on the terminal just after login ("stty -echo"), but double echo of
user and password would remain.
Instead of that, send only the stdout to the logfile using the
logfile_read property.
Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/infra/basetest.py')
0 files changed, 0 insertions, 0 deletions