Fixing the error message that displays the job name as a bad host.
Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2285 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/job.py b/cli/job.py
index 177c6e1..80f3119 100755
--- a/cli/job.py
+++ b/cli/job.py
@@ -201,10 +201,13 @@
[--is-synchronous] [--container] [--control-file </path/to/cfile>]
[--on-server] [--test <test1,test2>] [--kernel <http://kernel>]
[--mlist </path/to/machinelist>] [--machine <host1 host2 host3>]
- job_name"""
+ job_name
+
+ Creating a job is rather different from the other create operations,
+ so it only uses the __init__() and output() from its superclass.
+ """
op_action = 'create'
msg_items = 'job_name'
- display_ids = True
def __init__(self):
super(job_create, self).__init__()
@@ -354,8 +357,11 @@
self.data['control_type'] = 'Server'
else:
self.data['control_type'] = 'Client'
+
self.data['dependencies'] = cf_info['dependencies']
- return super(job_create, self).execute()
+
+ job_id = self.execute_rpc(op='create_job', **self.data)
+ return ['%s (id %s)' % (self.jobname, job_id)]
def get_items(self):