Create get_description and get_scenario_type for Scenario 77/46977/1
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Tue, 7 Nov 2017 16:27:43 +0000 (16:27 +0000)
committerRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Tue, 7 Nov 2017 16:27:43 +0000 (16:27 +0000)
commit37dd0cbbcbcb1aa00b7f3aa2e74a6775c6a7f2fb
tree08824715b0dd267cde0d503c00a91df7f2b399d9
parent5a756e6171ad2d867914793dc2fd8b1aa7a19a6e
Create get_description and get_scenario_type for Scenario

Created two new class functions for Scenario class:

* "get_description" will return the first line of the docstring,
  if exists.
* "get_scenario_type" will return the value of "__scenario_type__"
  variable.

Change-Id: I8e3b47e33e0bae101b874c3975bb9c383397d188
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
tests/unit/benchmark/scenarios/test_base.py [new file with mode: 0644]
yardstick/benchmark/core/scenario.py
yardstick/benchmark/scenarios/base.py