aboutsummaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorchenjiankun <chenjiankun1@huawei.com>2016-11-29 17:02:07 +0000
committerchenjiankun <chenjiankun1@huawei.com>2016-11-29 17:02:07 +0000
commit136684a74580fe3e891c4cbc17aab5074614b3c0 (patch)
treeff1bb809daa22232564952f0c7e0e21a7dd5abde /api
parent893294646833bed300586ee36040d4fde3c20842 (diff)
Bugfix: dict don't have startwith method error when use API to run test case
JIRA: YARDSTICK-431 When use API to run test case and set the task-args args, it will encounter a error of dict object do not have startwith method. The reason is yardstick will only accept the str type. So we need to change the dict to str. Change-Id: I26aac35c477842ab9cd692bdacd401e68673b01d Signed-off-by: chenjiankun <chenjiankun1@huawei.com>
Diffstat (limited to 'api')
-rw-r--r--api/utils/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/utils/common.py b/api/utils/common.py
index 04a6fe0d6..09cfc04d4 100644
--- a/api/utils/common.py
+++ b/api/utils/common.py
@@ -34,7 +34,7 @@ def get_command_list(command_list, opts, args):
task_args = opts.get('task-args', '')
if task_args:
- command_list.extend(['--task-args', task_args])
+ command_list.extend(['--task-args', str(task_args)])
return command_list