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 09:49:03 +0000
commit5fde7a2bb154161137c5a29881a36c698a969a8b (patch)
tree0cd023e31ab67c0fac4c74d32696de6f28b6af89 /resources
parent983d093fe111a2aff3b541fb5d11cefeb9374e8d (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> (cherry picked from commit 28ed095b73c4a01ed73c93b3b80da22a4bcca907)
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.