1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

client: when job fails, still wait for others to complete

This commit is contained in:
Oliver Giles 2015-11-01 11:25:43 +01:00
parent 2b6cbc18b1
commit b3cd9929b7

View File

@ -79,6 +79,8 @@ int main(int argc, char** argv) {
return EINVAL;
}
int ret = 0;
capnp::EzRpcClient client(address);
LaminarCi::Client laminar = client.getMain<LaminarCi>();
@ -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;
}