Skip to content

Resolve "testing libs compiled even without --with-gtest"

Closes #3032 (closed)

Jenkins fails due to error while building documentation:

 [HAMMER]  2023-10-09 13:54:28,417 Processing /home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/src/share/api/remote-subnet6-del-by-id.json
 [HAMMER]  2023-10-09 13:54:28,426 
 [HAMMER]  2023-10-09 13:54:28,429 Traceback (most recent call last):
 [HAMMER]  2023-10-09 13:54:28,429   File "/usr/lib/python3.10/site-packages/sphinx/events.py", line 96, in emit
 [HAMMER]  2023-10-09 13:54:28,429     results.append(listener.handler(self.app, *args))
 [HAMMER]  2023-10-09 13:54:28,429   File "/home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/doc/sphinx/conf.py", line 253, in run_generate_docs
 [HAMMER]  2023-10-09 13:54:28,429     mes2doc.generate(mes_files, os.path.join(src_dir, 'kea-messages.rst'))
 [HAMMER]  2023-10-09 13:54:28,429   File "/home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/doc/sphinx/mes2doc.py", line 117, in generate
 [HAMMER]  2023-10-09 13:54:28,429     messages = read_input_files(in_files)
 [HAMMER]  2023-10-09 13:54:28,429   File "/home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/doc/sphinx/mes2doc.py", line 39, in read_input_files
 [HAMMER]  2023-10-09 13:54:28,429     with open(f) as fp:
 [HAMMER]  2023-10-09 13:54:28,429 FileNotFoundError: [Errno 2] No such file or directory: '/home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/src/lib/log/tests/log_test_messages.mes'
 [HAMMER]  2023-10-09 13:54:28,429 
 [HAMMER]  2023-10-09 13:54:28,429 The above exception was the direct cause of the following exception:
 [HAMMER]  2023-10-09 13:54:28,429 
 [HAMMER]  2023-10-09 13:54:28,429 Traceback (most recent call last):
 [HAMMER]  2023-10-09 13:54:28,429   File "/usr/lib/python3.10/site-packages/sphinx/cmd/build.py", line 280, in build_main
 [HAMMER]  2023-10-09 13:54:28,429     app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
 [HAMMER]  2023-10-09 13:54:28,429   File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 268, in __init__
 [HAMMER]  2023-10-09 13:54:28,429     self._init_builder()
 [HAMMER]  2023-10-09 13:54:28,429   File "/usr/lib/python3.10/site-packages/sphinx/application.py", line 341, in _init_builder
 [HAMMER]  2023-10-09 13:54:28,429     self.events.emit('builder-inited')
 [HAMMER]  2023-10-09 13:54:28,429   File "/usr/lib/python3.10/site-packages/sphinx/events.py", line 107, in emit
 [HAMMER]  2023-10-09 13:54:28,429     raise ExtensionError(__("Handler %r for event %r threw an exception") %
 [HAMMER]  2023-10-09 13:54:28,429 sphinx.errors.ExtensionError: Handler <function run_generate_docs at 0x7fefb2865d80> for event 'builder-inited' threw an exception (exception: [Errno 2] No such file or directory: '/home/alpine/workspace/kea-dev/pkg/kea-src/src/kea-2.5.3/src/lib/log/tests/log_test_messages.mes')
Edited by Wlodzimierz Wencel

Merge request reports