aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-06-07 09:33:10 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-06-07 09:33:10 +0200
commit93f04c528c43b8a06d55f9abe0657d3c1953ffed (patch)
tree279e28d650103a5367d4794111000b9c9eb3f48d /test/distrib
parent62950b43c0e751d320a6df3d7f8fcece6f05440e (diff)
fix test_codegen for mac
Diffstat (limited to 'test/distrib')
-rwxr-xr-xtest/distrib/csharp/test_codegen/test_codegen.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/distrib/csharp/test_codegen/test_codegen.sh b/test/distrib/csharp/test_codegen/test_codegen.sh
index 21ccb7e6c3..f91959ea07 100755
--- a/test/distrib/csharp/test_codegen/test_codegen.sh
+++ b/test/distrib/csharp/test_codegen/test_codegen.sh
@@ -20,7 +20,10 @@ cd "$(dirname "$0")"
ls -lR "../packages/Grpc.Tools.__GRPC_NUGET_VERSION__/tools"
PLATFORM_ARCH=linux_x64
-if [ "$(getconf LONG_BIT)" == "32" ]
+if [ "$(uname)" == "Darwin" ]
+then
+ PLATFORM_ARCH=macosx_x64
+elif [ "$(getconf LONG_BIT)" == "32" ]
then
PLATFORM_ARCH=linux_x86
fi