aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2016-02-09 07:49:44 -0800
committerGravatar Jan Tattermusch <jtattermusch@google.com>2016-02-09 07:52:03 -0800
commit2713c5169fc8e5e540b69bda95d8b17aaac6adeb (patch)
tree9678715cb49d203f323de0750fd85f570e355f14 /test
parenteba3430d20c9ed5b1d6dced04442ab079b7379f2 (diff)
do not hardcode version to test
Diffstat (limited to 'test')
-rwxr-xr-xtest/distrib/csharp/run_distrib_test.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/distrib/csharp/run_distrib_test.sh b/test/distrib/csharp/run_distrib_test.sh
index 8ddb4c4bff..1de62041b3 100755
--- a/test/distrib/csharp/run_distrib_test.sh
+++ b/test/distrib/csharp/run_distrib_test.sh
@@ -34,8 +34,9 @@ cd $(dirname $0)
unzip -o "$EXTERNAL_GIT_ROOT/input_artifacts/csharp_nugets.zip" -d TestNugetFeed
-# TODO(jtattermusch): replace the version number
-./update_version.sh 0.13.0
+# Extract the version number from Grpc nuget package name.
+CSHARP_VERSION=$(ls TestNugetFeed | grep '^Grpc\.[0-9].*\.nupkg$' | sed s/^Grpc\.// | sed s/\.nupkg$//)
+./update_version.sh $CSHARP_VERSION
nuget restore