summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authormbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-09-03 20:25:19 +0000
committermbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4>2009-09-03 20:25:19 +0000
commite5ae0979457e8a152e9dabe917fe5ecc2d3d0451 (patch)
tree5af131e245bebf5ad390e27ce4c849c2b69e9900 /cli
parentfa558a3c1ef3eee007de797d54ae79ce34e10ab8 (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-xcli/job.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/job.py b/cli/job.py
index e80ed9aa..8d8d61cf 100755
--- a/cli/job.py
+++ b/cli/job.py
@@ -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