Merge pull request #1290 from yang-g/interop
Return 1 when test_case is not supported in interop test
diff --git a/test/cpp/interop/client.cc b/test/cpp/interop/client.cc
index 189cdeb..9601665 100644
--- a/test/cpp/interop/client.cc
+++ b/test/cpp/interop/client.cc
@@ -86,6 +86,7 @@
ParseCommandLineFlags(&argc, &argv, true);
+ int ret = 0;
grpc::testing::InteropClient client(
CreateChannelForTestCase(FLAGS_test_case));
if (FLAGS_test_case == "empty_unary") {
@@ -132,9 +133,10 @@
"large_unary|client_streaming|server_streaming|half_duplex|ping_pong|"
"service_account_creds|compute_engine_creds|jwt_token_creds",
FLAGS_test_case.c_str());
+ ret = 1;
}
client.Reset(nullptr);
grpc_shutdown();
- return 0;
+ return ret;
}