.github: add canard generator test in CI

This commit is contained in:
bugobliterator 2021-09-30 17:03:19 +05:30 committed by Andrew Tridgell
parent 6fb0571f5c
commit 8f11c3b3a5
2 changed files with 6 additions and 0 deletions

View File

@ -44,6 +44,11 @@ jobs:
apt-get update apt-get update
apt-get install -y gcc-multilib g++-multilib apt-get install -y gcc-multilib g++-multilib
- name: run canard dsdlc generator test
run: |
PATH="/github/home/.local/bin:$PATH"
python Tools/canard_dsdlc/canard_dsdlc.py -O dsdlc_generated libraries/AP_UAVCAN/dsdl/ardupilot modules/pyuavcan/uavcan/dsdl_files/uavcan --run-test
- name: build sitl_periph_gps - name: build sitl_periph_gps
shell: bash shell: bash
run: | run: |

View File

@ -39,6 +39,7 @@ except ImportError:
def sp_run(*popenargs, **kwargs): def sp_run(*popenargs, **kwargs):
input = kwargs.pop("input", None) input = kwargs.pop("input", None)
check = kwargs.pop("handle", False) check = kwargs.pop("handle", False)
kwargs.pop("capture_output", True)
if input is not None: if input is not None:
if 'stdin' in kwargs: if 'stdin' in kwargs:
raise ValueError('stdin and input arguments may not both be used.') raise ValueError('stdin and input arguments may not both be used.')