Skip to content

Commit 23f7241

Browse files
author
Juanjo Garcia
committed
Refs #21777: include checks like in 2.10.x, as described in PR #799
Signed-off-by: Juanjo Garcia <juanjosegarcia@eprosima.com>
1 parent e2593b6 commit 23f7241

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

docs/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,13 @@ def configure_doxyfile(
266266
project_source_dir
267267
)
268268
# Generate doxygen documentation
269-
subprocess.call('doxygen {}'.format(doxyfile_out), shell=True)
269+
doxygen_ret = subprocess.call('doxygen {}'.format(doxyfile_out), shell=True)
270+
if doxygen_ret != 0:
271+
print('Doxygen failed with return code {}'.format(doxygen_ret))
272+
sys.exit(doxygen_ret)
270273

271274
# Generate SWIG code.
272-
subprocess.call('swig -python -doxygen -I{}/include \
275+
swig_ret = subprocess.call('swig -python -doxygen -I{}/include \
273276
-outdir {}/fastdds_python/src/swig -c++ -interface \
274277
_fastdds_python -o \
275278
{}/fastdds_python/src/swig/fastddsPYTHON_wrap.cxx \
@@ -279,6 +282,10 @@ def configure_doxyfile(
279282
fastdds_python_repo_name,
280283
fastdds_python_repo_name
281284
), shell=True)
285+
if swig_ret != 0:
286+
print('SWIG failed with return code {}'.format(swig_ret))
287+
sys.exit(swig_ret)
288+
282289
fastdds_python_imported_location = '{}/fastdds_python/src/swig'.format(
283290
fastdds_python_repo_name)
284291
autodoc_mock_imports = ["_fastdds_python"]

0 commit comments

Comments
 (0)