aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick/benchmark/core/task.py
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-06-22 15:10:21 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-06-22 15:10:21 +0000
commite80c35164e7dfee4fe4a3652b71b8775c1c0857a (patch)
treeb62143208b719c39de73c001a547258ab19bfa98 /yardstick/benchmark/core/task.py
parent6b3ee75dc0b5fc0e66c914d0b72b4396411526fd (diff)
parent653902770572c780777d1dc7a371794b670585b1 (diff)
Merge "Acquire NSB specific data from Heat."
Diffstat (limited to 'yardstick/benchmark/core/task.py')
-rw-r--r--yardstick/benchmark/core/task.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index c44081b73..5a006f2b2 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -400,6 +400,9 @@ class TaskParser(object): # pragma: no cover
task_name = os.path.splitext(os.path.basename(self.path))[0]
scenario["tc"] = task_name
scenario["task_id"] = task_id
+ # embed task path into scenario so we can load other files
+ # relative to task path
+ scenario["task_path"] = os.path.dirname(self.path)
change_server_name(scenario, name_suffix)