test: add an LVO argument to the XKB layout tester
Slightly easier to debug if we can have it only parse one single layout. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>master
parent
a955dca3d5
commit
efa5805032
|
@ -267,6 +267,13 @@ def main(args):
|
||||||
parser.add_argument('--verbose', '-v', default=False, action="store_true")
|
parser.add_argument('--verbose', '-v', default=False, action="store_true")
|
||||||
parser.add_argument('--keymap-output-dir', default=None, type=str,
|
parser.add_argument('--keymap-output-dir', default=None, type=str,
|
||||||
help='Directory to print compiled keymaps to')
|
help='Directory to print compiled keymaps to')
|
||||||
|
parser.add_argument('--layout', default=None, type=str,
|
||||||
|
help='Only test the given layout')
|
||||||
|
parser.add_argument('--variant', default=None, type=str,
|
||||||
|
help='Only test the given variant')
|
||||||
|
parser.add_argument('--option', default=None, type=str,
|
||||||
|
help='Only test the given option')
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
verbose = args.verbose
|
verbose = args.verbose
|
||||||
|
@ -275,6 +282,13 @@ def main(args):
|
||||||
|
|
||||||
tool = tools[args.tool]
|
tool = tools[args.tool]
|
||||||
|
|
||||||
|
if any([args.layout, args.variant, args.option]):
|
||||||
|
combos = [{
|
||||||
|
'l': args.layout,
|
||||||
|
'v': args.variant,
|
||||||
|
'o': args.option,
|
||||||
|
}]
|
||||||
|
else:
|
||||||
combos = parse(args.path)
|
combos = parse(args.path)
|
||||||
failed = run(combos, tool, args.jobs, keymapdir)
|
failed = run(combos, tool, args.jobs, keymapdir)
|
||||||
sys.exit(failed)
|
sys.exit(failed)
|
||||||
|
|
Loading…
Reference in New Issue