mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 19:10:42 +01:00
tools: handle arguments correctly for the YAML verifier tool
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
9807019096
commit
b436585b5e
1 changed files with 4 additions and 3 deletions
|
|
@ -657,10 +657,11 @@ if __name__ == '__main__':
|
|||
parser.add_argument('recording', metavar='recorded-file.yaml',
|
||||
type=str, help='Path to device recording')
|
||||
parser.add_argument('--verbose', action='store_true')
|
||||
args = parser.parse_args()
|
||||
args, remainder = parser.parse_known_args()
|
||||
TestYaml.filename = args.recording
|
||||
verbosity = 1
|
||||
if args.verbose:
|
||||
verbosity = 3
|
||||
del sys.argv[1:]
|
||||
unittest.main(verbosity=verbosity)
|
||||
|
||||
argv = [sys.argv[0], *remainder]
|
||||
unittest.main(argv=argv, verbosity=verbosity)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue