From b3cd9929b73124b565f49d1652eb29713758294b Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sun, 1 Nov 2015 11:25:43 +0100 Subject: [PATCH] client: when job fails, still wait for others to complete --- src/client.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/client.cpp b/src/client.cpp index abcd540..5414413 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -79,6 +79,8 @@ int main(int argc, char** argv) { return EINVAL; } + int ret = 0; + capnp::EzRpcClient client(address); LaminarCi::Client laminar = client.getMain(); @@ -124,7 +126,7 @@ int main(int argc, char** argv) { // pend on the promises for(auto& p : promises) { if(p.wait(waitScope).getResult() != LaminarCi::JobResult::SUCCESS) { - return EFAILED; + ret = EFAILED; } } } else if(strcmp(argv[1], "set") == 0) { @@ -161,5 +163,5 @@ int main(int argc, char** argv) { return EINVAL; } - return 0; + return ret; }