blob: ea39be8ad4162a87c393244e87b124b46041f695 [file] [log] [blame]
Marti Bolivarab822642019-01-23 08:31:06 -07001# Copyright (c) 2017 Linaro Limited.
2#
3# SPDX-License-Identifier: Apache-2.0
4
5'''Runner stub for QEMU.'''
6
7from runners.core import ZephyrBinaryRunner, RunnerCaps
8
9
10class QemuBinaryRunner(ZephyrBinaryRunner):
11 '''Place-holder for QEMU runner customizations.'''
12
13 def __init__(self, cfg):
14 super(QemuBinaryRunner, self).__init__(cfg)
15
16 @classmethod
17 def name(cls):
18 return 'qemu'
19
20 @classmethod
21 def capabilities(cls):
22 # This is a stub.
23 return RunnerCaps(commands=set())
24
25 @classmethod
26 def do_add_parser(cls, parser):
27 pass # Nothing to do.
28
29 @classmethod
30 def create(cls, cfg, args):
31 return QemuBinaryRunner(cfg)
32
33 def do_run(self, command, **kwargs):
34 pass