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 <peter.hutterer@who-t.net>
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