aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2021-02-05 16:14:27 +0100
committerVratko Polak <vrpolak@cisco.com>2021-02-08 08:49:06 +0000
commit28ed095b73c4a01ed73c93b3b80da22a4bcca907 (patch)
tree4f114ebebbf55a8e877b974f5caa4349ebbd6901 /resources
parente61e873dd9252b6824cbc3c37bafccf85813a7a1 (diff)
Traffic generator: Force ramp-up in next test
The behavior was already documented, just not implemented properly. Change-Id: Ib8c232c004e91032e1230e86dda9f70bdfab43ad Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/libraries/python/TrafficGenerator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py
index 30be3b9eba..ce01aa613b 100644
--- a/resources/libraries/python/TrafficGenerator.py
+++ b/resources/libraries/python/TrafficGenerator.py
@@ -962,8 +962,8 @@ class TrafficGenerator(AbstractMeasurer):
if self.ramp_up_rate:
# Figure out whether we need to insert a ramp-up trial.
# TODO: Give up on async_call=True?
- if self.ramp_up_start is None:
- # We never ramped up yet.
+ if ramp_up_only or self.ramp_up_start is None:
+ # We never ramped up yet (at least not in this test case).
ramp_up_needed = True
else:
# We ramped up before, but maybe it was too long ago.