Change the key/val delimiter to | by default. Make it an option.
Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2783 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/cli/job.py b/cli/job.py
index 750ee8b..df22093 100755
--- a/cli/job.py
+++ b/cli/job.py
@@ -31,7 +31,7 @@
def _convert_status(self, results):
for result in results:
total = sum(result['status_counts'].values())
- status = ['%s:%s(%.1f%%)' % (key, val, 100.0*float(val)/total)
+ status = ['%s=%s(%.1f%%)' % (key, val, 100.0*float(val)/total)
for key, val in result['status_counts'].iteritems()]
status.sort()
result['status_counts'] = ', '.join(status)
@@ -161,7 +161,7 @@
job_id = job['id']
if hosts_status.has_key(job_id):
this_job = hosts_status[job_id]
- host_per_status = ['%s:%s' %(status, ','.join(host))
+ host_per_status = ['%s=%s' %(status, ','.join(host))
for status, host in this_job.iteritems()]
job['hosts_status'] = ', '.join(host_per_status)
else: