From 6483c32f7cfd10b4ae68d7d1e7f73d40af391f2f Mon Sep 17 00:00:00 2001
From: vjpai <vpai@google.com>
Date: Wed, 24 Feb 2016 09:29:12 -0800
Subject: [PATCH] BSD platforms (such as Mac) are likely to have /bin/sh refer
 to traditional Bourne shell syntax, not Bash syntax. Change "|&" to "2>&1 |"
 since that's the traditional way to redirect stdout and stderr to a pipe

---
 test/cpp/qps/qps-sweep.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/cpp/qps/qps-sweep.sh b/test/cpp/qps/qps-sweep.sh
index 7a35788849..9d3f053a7b 100755
--- a/test/cpp/qps/qps-sweep.sh
+++ b/test/cpp/qps/qps-sweep.sh
@@ -72,7 +72,7 @@ for secure in true false; do
     --server_type=ASYNC_GENERIC_SERVER --outstanding_rpcs_per_channel=$deep \
     --client_channels=$wide --bbuf_req_size=0 --bbuf_resp_size=0 \
     --async_client_threads=0 --async_server_threads=0 --secure_test=$secure \
-    --num_servers=1 --num_clients=0 |& tee /tmp/qps-test.$$
+    --num_servers=1 --num_clients=0 2>&1 | tee /tmp/qps-test.$$
 
   # Scenario 2b: QPS with a single server core
   "$bins"/opt/qps_driver --rpc_type=STREAMING --client_type=ASYNC_CLIENT \
-- 
GitLab