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 <eduardoponz@eprosima.com>
  • Loading branch information
EduPonz committed Jun 5, 2024
1 parent 93f6c19 commit 0974196
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 @@ -293,10 +293,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 @@ -306,6 +309,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 0974196

Please sign in to comment.