test: allow skipping errors in certain conditions
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 20 Apr 2021 23:02:40 +0000 (09:02 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 22 Apr 2021 00:02:46 +0000 (10:02 +1000)
commit1557668364496ecd724d8f80f915e0c9d6be803e
tree3cc47d7c42e6113457e55249567329e04a88b2b0
parentf60bdb1680650a131e8e21ffa4a8a16775a35c9f
test: allow skipping errors in certain conditions

Add a skipError test function that can analyse rc, stdout, stderr to skip a test
even when we expect an error. We use that to skip if we couldn't find a keyboard
in the interactive-evdev test.

Fixes #235

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/tool-option-parsing.py