Commit 9fc0cb8777a3e87b2b521c735940c50f5925e239

Peter Hutterer 2019-10-30T10:53:58

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>

1
2
3
4
5
6
7
8
9
10
11
12
13
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