1 The output that the test expects is wrong. We get
2 ./xkbcli: illegal option -- foobar
3 Usage: xkbcli [--help|-h] [--version|-V] <command> [<args>]
5 here. Thus, remove the wrong expectations to make the test pass.
7 --- libxkbcommon-xkbcommon-1.4.1/test/tool-option-parsing.py.orig 2022-05-21 21:55:22.000000000 +0000
8 +++ libxkbcommon-xkbcommon-1.4.1/test/tool-option-parsing.py 2022-11-13 11:02:58.556524894 +0000
10 def run_command_unrecognized_option(self, args):
11 rc, stdout, stderr = self.run_command(args)
12 assert rc == 2, (rc, stdout, stderr)
13 - assert stdout.startswith('Usage') or stdout == ''
14 - assert 'unrecognized option' in stderr
16 def run_command_missing_arg(self, args):
17 rc, stdout, stderr = self.run_command(args)