]> code.ossystems Code Review - openembedded-core.git/commit
runqemu: change terminal settings for valid tty's
authorMikko Ylinen <mikko.ylinen@linux.intel.com>
Tue, 13 Jun 2017 15:39:09 +0000 (18:39 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 14 Jun 2017 13:45:00 +0000 (14:45 +0100)
commit06742ed59092530aedf03f65c3c9542c24ff7ac3
tree27bcaa7cb96c3b691be5334008d0f287a122d8a0
parent3a603a805ff3495ac9b8431acbf698757a28d32d
runqemu: change terminal settings for valid tty's

runqemu uses stty to change terminal settings to give users
better control to qemu. However, stty does not work when
runqemu is run directly or indirectly via oe-selftest in
a Docker container (presumably some problems with Docker's
pseudo-tty implementation).

The error reported is:
stty: 'standard input': Inappropriate ioctl for device

As runqemu recently moved to subprocess.check_call() for
stty calls we now get thrown an error and all runqemu
runs fail.

sys.stdin.isatty() does proper job in detecting if the stty
calls can work so we use that check before running the stty
subprocess operations.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu