lib: Don't wait in igt_wait_for_keypress() if stdin is not a tty
authorDamien Lespiau <damien.lespiau@intel.com>
Tue, 11 Feb 2014 13:54:10 +0000 (13:54 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Tue, 11 Feb 2014 13:54:10 +0000 (13:54 +0000)
commit3386b4b2866b991b49e7386d51a3f4b9d9b681c0
tree73cf03a54affb367edc1b5f5623305a7dd9c3219
parent0d5de66fc6b85a0555ecc9d853e48c464122bb26
lib: Don't wait in igt_wait_for_keypress() if stdin is not a tty

When running in a non interactive terminal, there's little point in
trying to wait for some input on stdin.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
lib/drmtest.c