zephyr/scripts/west_commands/robot.py
Pieter De Gendt b9fb5d79e4 scripts: west_commands: robot: Fix linter issues
Fix issues reported by ruff.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2025-05-31 06:54:39 -04:00

30 lines
811 B
Python

# Copyright (c) 2024 Antmicro <www.antmicro.com>
#
# SPDX-License-Identifier: Apache-2.0
from run_common import add_parser_common, do_run_common
from west.commands import WestCommand
EXPORT_DESCRIPTION = '''\
Run RobotFramework test suites with a runner of choice.
'''
class Robot(WestCommand):
def __init__(self):
super().__init__(
'robot',
# Keep this in sync with the string in west-commands.yml.
'run RobotFramework test suites',
EXPORT_DESCRIPTION,
accepts_unknown_args=True)
self.runner_key = 'robot-runner' # in runners.yaml
def do_add_parser(self, parser_adder):
return add_parser_common(self, parser_adder)
def do_run(self, my_args, runner_args):
do_run_common(self, my_args, runner_args)