mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-02 10:23:25 +08:00
Tools: include process helpers in Renode runtime bundles
The bundled launcher and runner import process_utils, but the runtime file list omitted it. Include the dependency and exercise both entry points from the isolated bundle.
This commit is contained in:
@@ -28,6 +28,7 @@ RUNTIME_FILES = (
|
||||
'gen_board.py',
|
||||
'launch.py',
|
||||
'physics_protocol.py',
|
||||
'process_utils.py',
|
||||
'renode_data.py',
|
||||
'renode_firmware.py',
|
||||
'run.py',
|
||||
|
||||
@@ -39,6 +39,11 @@ def test_bundle_runs_hwdef_compiler_without_source_tree(tmp_path):
|
||||
assert not list(bundle.rglob('*.png'))
|
||||
assert not list(bundle.rglob('__pycache__'))
|
||||
|
||||
for script in ('launch.py', 'run.py'):
|
||||
subprocess.run(
|
||||
[sys.executable, '-E', str(bundle / 'Tools/renode' / script), '--help'],
|
||||
cwd=tmp_path, check=True, capture_output=True, text=True)
|
||||
|
||||
listed = subprocess.run(
|
||||
[sys.executable, str(bundle / 'Tools/renode/gen_board.py'), '--list'],
|
||||
cwd=tmp_path, check=True, capture_output=True, text=True).stdout
|
||||
|
||||
Reference in New Issue
Block a user