From 53a8a54d8ced37ce1176282a6620478567c4cc62 Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 6 Jul 2010 15:29:36 +0200 Subject: [PATCH] cli.JobExecutor.WaitOrShow: always return status Currently, for the 'wait' case, we return a list of tuples (status, result), in the order of submitted jobs, but we don't return anything for the no-wait case. This patch changes the no-wait case to return a list of tuples (status, result), where result can be either a job ID or an error message. Processing in clients can then ignore whether we did wait or not, and test the overall or individual status. Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michael Hanselmann <hansmi@google.com> --- lib/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/cli.py b/lib/cli.py index cce1e32c5..9f35f06aa 100644 --- a/lib/cli.py +++ b/lib/cli.py @@ -2364,3 +2364,4 @@ class JobExecutor(object): ToStdout("%s: %s", result, name) else: ToStderr("Failure for %s: %s", name, result) + return [row[1:3] for row in self.jobs] -- GitLab