Commit 34ef11d9c9d7c2b16eea273874e7627705e05d6c

Peter Hutterer 2022-01-20T14:17:50

test: show the tool exit status on failure We already do so for the non-successful cases, let's do this here too so we know whether it was a signal or a normal exit.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/tool-option-parsing.py b/test/tool-option-parsing.py
index 0f8b240..6692d58 100755
--- a/test/tool-option-parsing.py
+++ b/test/tool-option-parsing.py
@@ -100,7 +100,7 @@ class XkbcliTool:
             for testfunc, reason in self.skipError:
                 if testfunc(rc, stdout, stderr):
                     raise unittest.SkipTest(reason)
-        assert rc == 0, (stdout, stderr)
+        assert rc == 0, (rc, stdout, stderr)
         return stdout, stderr
 
     def run_command_invalid(self, args):