diff options
author | 2018-03-23 09:05:56 +0000 | |
---|---|---|
committer | 2018-03-23 09:05:56 +0000 | |
commit | d90c544053e3ca5ec016f2c4c62003b965c52af8 (patch) | |
tree | c08aa8434417411463581b7aedfda32d0b052f4a /yardstick/benchmark/scenarios/networking/vnf_generic.py | |
parent | 94431babb856f079812aa518ee562f763057263a (diff) | |
parent | bf892d9cf62b6bc64ea76d8b69a8fe3751cabd75 (diff) |
Merge "Add "Scenario" class wait methods for runners"
Diffstat (limited to 'yardstick/benchmark/scenarios/networking/vnf_generic.py')
-rw-r--r-- | yardstick/benchmark/scenarios/networking/vnf_generic.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/yardstick/benchmark/scenarios/networking/vnf_generic.py b/yardstick/benchmark/scenarios/networking/vnf_generic.py index 0e4785294..be2fa3f3b 100644 --- a/yardstick/benchmark/scenarios/networking/vnf_generic.py +++ b/yardstick/benchmark/scenarios/networking/vnf_generic.py @@ -14,6 +14,7 @@ import copy import logging +import time import ipaddress from itertools import chain @@ -484,3 +485,11 @@ class NetworkServiceTestCase(scenario_base.Scenario): # https://bugs.python.org/issue9400 LOG.exception("") raise RuntimeError("Error in teardown") + + def pre_run_wait_time(self, time_seconds): + """Time waited before executing the run method""" + time.sleep(time_seconds) + + def post_run_wait_time(self, time_seconds): + """Time waited after executing the run method""" + pass |