aboutsummaryrefslogtreecommitdiffstats
path: root/yardstick
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2017-01-10 08:01:41 +0000
committerchenjiankun <chenjiankun1@huawei.com>2017-01-14 10:02:56 +0000
commit65e1ffbabbbfafd03de817e1c4606e5e0382b98d (patch)
tree858a7afad9b3207c24082f37362d0fa803ac9916 /yardstick
parentf036e9898a69f5041f9cde02e3652c29e2de1643 (diff)
Bugfix:can not run a test suite if not under yardstick root path
JIRA: YARDSTICK-530 Currently we can not run a test suite if we are not in yardstick root path. The reason is that the file in test suite config file use relative path. So I change it to absolute path when run. Change-Id: I62758bc67f466ac794d339b597562b3be05574fb Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'yardstick')
-rw-r--r--yardstick/benchmark/core/task.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/yardstick/benchmark/core/task.py b/yardstick/benchmark/core/task.py
index d9a85764a..1a3d21934 100644
--- a/yardstick/benchmark/core/task.py
+++ b/yardstick/benchmark/core/task.py
@@ -195,6 +195,8 @@ class TaskParser(object): # pragma: no cover
LOG.info("\nStarting scenario:%s", cfg["name"])
test_cases_dir = cfg.get("test_cases_dir", test_cases_dir_default)
+ test_cases_dir = os.path.join(constants.YARDSTICK_ROOT_PATH,
+ test_cases_dir)
if test_cases_dir[-1] != os.sep:
test_cases_dir += os.sep