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:
Andrew Tridgell
2026-09-05 20:44:29 +10:00
parent 39a78ea8e8
commit e2ef2d8dbb
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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',
+5
View File
@@ -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