From 65e1ffbabbbfafd03de817e1c4606e5e0382b98d Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Tue, 10 Jan 2017 08:01:41 +0000 Subject: 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 --- yardstick/benchmark/core/task.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'yardstick/benchmark/core/task.py') 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 -- cgit 1.2.3-korg