From 9fc0cb8777a3e87b2b521c735940c50f5925e239 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 30 Oct 2019 10:53:58 +1000 Subject: [PATCH] test: xkeyboard-config: print to stderr on failure, stdout otherwise This is a change in behavior and requires any automated callers to adjust accordingly. Still, much easier to get the errors that way rather than it being mixed into a thousands-of-lines output file. Signed-off-by: Peter Hutterer --- test/xkeyboard-config-test.py.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/xkeyboard-config-test.py.in b/test/xkeyboard-config-test.py.in index bdbb4e2..d4c2ccf 100755 --- a/test/xkeyboard-config-test.py.in +++ b/test/xkeyboard-config-test.py.in @@ -146,7 +146,7 @@ def run(combos, tool, njobs): if not success: failed = True if output: - print(output) + print(output, file=sys.stdout if success else sys.stderr) return failed -- 2.7.4