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