diff options
author | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-09-03 20:25:19 +0000 |
---|---|---|
committer | mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> | 2009-09-03 20:25:19 +0000 |
commit | e5ae0979457e8a152e9dabe917fe5ecc2d3d0451 (patch) | |
tree | 5af131e245bebf5ad390e27ce4c849c2b69e9900 /cli | |
parent | fa558a3c1ef3eee007de797d54ae79ce34e10ab8 (diff) |
Fixed frontend and CLI for space delimited multiple kernel versions.
Signed-off-by: Mihai Rusu <dizzy@google.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@3643 592f7852-d20e-0410-864c-8624ca9c26a4
Diffstat (limited to 'cli')
-rwxr-xr-x | cli/job.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -393,7 +393,9 @@ class job_create(job_create_or_clone): def _get_kernel_data(kernel_list, cmdline): # the RPC supports cmdline per kernel version in a dictionary kernels = [] - for version in kernel_list.split(','): + for version in re.split(r'[, ]+', kernel_list): + if not version: + continue kernel_info = {'version': version} if cmdline: kernel_info['cmdline'] = cmdline |