Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: enable pipefail mode for grpcproxy test
By default, the pipefail is disabled. For instance, the commands should return 1 as exit code, but we get zero. After pipefail enabled, it's back to normal. ```bash $ ( echo hello; exit 1 ) | tee 2>&1 hello $ echo $? 0 $ set -o pipefail $ ( echo hello; exit 122 ) | tee 2>&1 hello $ echo $? 122 ``` And the test.log is used to grep the error from a ton of messages. So that we should `set +e` and set it back after egrep. fixes: etcd-io#15487 Signed-off-by: Wei Fu <fuweid89@gmail.com>
- Loading branch information