Skip to content

Commit

Permalink
Another workaround to fix windows SymInitialize error (grpc#27169)
Browse files Browse the repository at this point in the history
  • Loading branch information
veblush authored Aug 30, 2021
1 parent a388361 commit 71a9410
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/cpp/qps/qps_benchmark_script.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ load("//test/cpp/qps:json_run_localhost_scenarios.bzl", "JSON_RUN_LOCALHOST_SCEN

def add_suffix(name):
# NOTE(https://github.com/grpc/grpc/issues/24178): Add the suffix to the name
# to avoid having the target name that 89 or 90 long.
m = len(name) - (89 - len("//test/cpp/qps:"))
if m == 0 or m == 1:
return name + "_" * (2 - m)
# to avoid having the target name that 87, 88, 89 or 90 long.
m = len(name) - (87 - len("//test/cpp/qps:"))
if m >= 0 and m <= 3:
return name + "_" * (4 - m)
else:
return name

Expand Down

0 comments on commit 71a9410

Please sign in to comment.