diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-11-09 17:17:24 +0000 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-11-11 14:52:47 +0000 |
commit | 790f1f804b062c47fb1bf686bfa3b0f2e69ee947 (patch) | |
tree | 649b6d03e425add53ded3336281026e5aa597b1a /lib/igt_aux.c | |
parent | fca7b1b5fd2d61dfec6a612f1a2798270d1f8a4e (diff) |
lib: add a environment variable to control output
Disable output of terminal control characters and progress meters when
IGT_PLAIN_OUTPUT is set in the environment.
Cc: Derek Morton <derek.j.morton@intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'lib/igt_aux.c')
-rw-r--r-- | lib/igt_aux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_aux.c b/lib/igt_aux.c index f3c76aeb..4d08d68b 100644 --- a/lib/igt_aux.c +++ b/lib/igt_aux.c @@ -231,7 +231,7 @@ static void igt_interactive_info(const char *format, ...) { va_list args; - if (!isatty(STDERR_FILENO)) + if (!isatty(STDERR_FILENO) || __igt_plain_output) return; if (igt_log_level > IGT_LOG_INFO) |