summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xyardstick/benchmark/runners/dynamictp.py2
-rw-r--r--yardstick/cmd/commands/task.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/yardstick/benchmark/runners/dynamictp.py b/yardstick/benchmark/runners/dynamictp.py
index 106595dbd..afff27d75 100755
--- a/yardstick/benchmark/runners/dynamictp.py
+++ b/yardstick/benchmark/runners/dynamictp.py
@@ -106,7 +106,7 @@ def _worker_process(queue, cls, method_name, scenario_cfg,
search_max = int(actual_pps * 1.5)
if ((search_max - search_min) < delta) or \
- (search_max <= search_min) or (10 <= sequence):
+ (search_max <= search_min) or (10 <= sequence):
if last_min_data['packets_per_second'] > 0:
data = last_min_data
diff --git a/yardstick/cmd/commands/task.py b/yardstick/cmd/commands/task.py
index 8d8ea2b3c..bd5447836 100644
--- a/yardstick/cmd/commands/task.py
+++ b/yardstick/cmd/commands/task.py
@@ -50,6 +50,8 @@ class TaskCommands(object): # pragma: no cover
param = change_osloobj_to_paras(args)
self.output_file = param.output_file
+ result = {}
+
try:
result = Task().start(param, **kwargs)
except Exception as e: