diff options
Diffstat (limited to 'grpc/tools/run_tests/sanity/check_qps_scenario_changes.py')
-rwxr-xr-x | grpc/tools/run_tests/sanity/check_qps_scenario_changes.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/grpc/tools/run_tests/sanity/check_qps_scenario_changes.py b/grpc/tools/run_tests/sanity/check_qps_scenario_changes.py index fffa813c..ce3de84e 100755 --- a/grpc/tools/run_tests/sanity/check_qps_scenario_changes.py +++ b/grpc/tools/run_tests/sanity/check_qps_scenario_changes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Copyright 2018 gRPC authors. # @@ -15,15 +15,15 @@ # limitations under the License. import os -import sys import subprocess +import sys os.chdir(os.path.join(os.path.dirname(sys.argv[0]), '../../../test/cpp/qps')) -subprocess.call(['./json_run_localhost_scenario_gen.py']) -subprocess.call(['./qps_json_driver_scenario_gen.py']) -subprocess.call(['buildifier', '-v', '-r', '.']) +subprocess.check_call(['./json_run_localhost_scenario_gen.py']) +subprocess.check_call(['./qps_json_driver_scenario_gen.py']) +subprocess.check_call(['buildifier', '-v', '-r', '.']) -output = subprocess.check_output(['git', 'status', '--porcelain']) +output = subprocess.check_output(['git', 'status', '--porcelain']).decode() qps_json_driver_bzl = 'test/cpp/qps/qps_json_driver_scenarios.bzl' json_run_localhost_bzl = 'test/cpp/qps/json_run_localhost_scenarios.bzl' |