1 ##############################################################################
2 # Copyright (c) 2015 Ericsson AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
10 """ Handler for yardstick command 'runner' """
12 from __future__ import absolute_import
13 from __future__ import print_function
14 from yardstick.benchmark.runners.base import Runner
15 from yardstick.benchmark.core import print_hbar
18 class Runners(object): # pragma: no cover
21 Set of commands to discover and display runner types.
24 def list_all(self, args):
25 """List existing runner types"""
26 types = Runner.get_types()
28 print("| %-16s | %-60s" % ("Type", "Description"))
31 print("| %-16s | %-60s" % (rtype.__execution_type__,
32 rtype.__doc__.split("\n")[0]))
36 """Show details of a specific runner type"""
37 rtype = Runner.get_cls(args.type[0])