Skip to content

Commit

Permalink
Check subprocess return codes on RDT generation (#795)
Browse files Browse the repository at this point in the history
Signed-off-by: eduponz <[email protected]>
(cherry picked from commit 0974196)
  • Loading branch information
EduPonz authored and mergify[bot] committed Jun 5, 2024
1 parent 6c76171 commit 6c16374
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,13 @@ def configure_doxyfile(
project_source_dir
)
# Generate doxygen documentation
subprocess.call('doxygen {}'.format(doxyfile_out), shell=True)
doxygen_ret = subprocess.call('doxygen {}'.format(doxyfile_out), shell=True)
if doxygen_ret != 0:
print('Doxygen failed with return code {}'.format(doxygen_ret))
sys.exit(doxygen_ret)

# Generate SWIG code.
subprocess.call('swig -python -doxygen -I{}/include \
swig_ret = subprocess.call('swig -python -doxygen -I{}/include \
-outdir {}/fastdds_python/src/swig -c++ -interface \
_fastdds_python -o \
{}/fastdds_python/src/swig/fastddsPYTHON_wrap.cxx \
Expand All @@ -294,6 +297,10 @@ def configure_doxyfile(
fastdds_python_repo_name,
fastdds_python_repo_name
), shell=True)
if swig_ret != 0:
print('SWIG failed with return code {}'.format(swig_ret))
sys.exit(swig_ret)

fastdds_python_imported_location = '{}/fastdds_python/src/swig'.format(
fastdds_python_repo_name)
autodoc_mock_imports = ["_fastdds_python"]
Expand Down

0 comments on commit 6c16374

Please sign in to comment.