[clang-tools-extra] 8e9bde3 - [clangd] NFC: Add more logging to remote index test
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 23:24:24 PST 2020
Author: Kirill Bobyrev
Date: 2020-11-11T08:24:09+01:00
New Revision: 8e9bde34e7185780e6470150c8bf6d902703bf9e
URL: https://github.com/llvm/llvm-project/commit/8e9bde34e7185780e6470150c8bf6d902703bf9e
DIFF: https://github.com/llvm/llvm-project/commit/8e9bde34e7185780e6470150c8bf6d902703bf9e.diff
LOG: [clangd] NFC: Add more logging to remote index test
Added:
Modified:
clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py b/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
index d062e29bd8ee..b823b5b8cbeb 100644
--- a/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
+++ b/clang-tools-extra/clangd/test/remote-index/pipeline_helper.py
@@ -36,6 +36,7 @@ def main():
s.bind(('localhost', 0))
server_address = 'localhost:' + str(s.getsockname()[1])
+ print('Initializing clangd-index-server...', file=sys.stderr)
index_server_process = subprocess.Popen([
'clangd-index-server', '--server-address=' + server_address,
args.index_file, args.project_root
@@ -53,14 +54,17 @@ def main():
found_init_message = False
while index_server_process.poll() is None:
if b'Server listening' in index_server_process.stderr.readline():
+ print('Server initialization complete.', file=sys.stderr)
found_init_message = True
break
if not found_init_message:
+ print('Server initialization failed. Shutting down.', file=sys.stderr)
sys.exit(1)
in_file = open(args.input_file_name)
+ print('Staring clangd...', file=sys.stderr)
clangd_process = subprocess.Popen([
'clangd', '--remote-index-address=' + server_address,
'--project-root=' + args.project_root, '--lit-test', '--sync'
@@ -68,6 +72,9 @@ def main():
stdin=in_file)
clangd_process.wait()
+ print(
+ 'Clangd executed successfully, shutting down child processes.',
+ file=sys.stderr)
index_server_process.kill()
More information about the cfe-commits
mailing list