diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index aae79f330042..97d545132dbb 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -74,12 +74,12 @@ jobs: sleep 3 timeout 2m build/flwr_client 1 127.0.0.1:9092 & sleep 3 - flower-server-app server:app --insecure + flower-server-app server:app --insecure & pid=$! wait $pid res=$? if [[ "$res" = "0" ]]; - then echo "Training worked correctly"; + then echo "Training worked correctly" && exit 0; else echo "Training had an issue" && exit 1; fi