From 11671b04073db623ba21be2b84e44bb8c0c987fb Mon Sep 17 00:00:00 2001 From: Eric Gribkoff Date: Tue, 24 Mar 2020 14:15:12 -0700 Subject: [PATCH] log exception and init client_process --- tools/run_tests/run_xds_tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/run_tests/run_xds_tests.py b/tools/run_tests/run_xds_tests.py index 1deac8db5a5..6e5b454e447 100755 --- a/tools/run_tests/run_xds_tests.py +++ b/tools/run_tests/run_xds_tests.py @@ -1069,6 +1069,7 @@ try: if not os.path.exists(log_dir): os.makedirs(log_dir) test_log_file = open(os.path.join(log_dir, _SPONGE_LOG_NAME), 'w+') + client_process = None try: client_process = subprocess.Popen(client_cmd, env=client_env, @@ -1106,6 +1107,7 @@ try: result.state = 'PASSED' result.returncode = 0 except Exception as e: + logger.error('Test case %s failed: %s' % (test_case, e)) result.state = 'FAILED' result.message = str(e) finally: