Files
computer-playbook/utils/install/node.py
T
kevinveenbirkenbach 3222904232 fix(test): install php and ruby instead of skipping their suites
test-unit-php and test-unit-ruby exited 0 whenever the interpreter or the
vendor tree was missing, so both suites were silently absent from every
gate. They now provision their toolchain through install-php/install-ruby
and fail loudly when that is impossible.

The three ensure_*_present helpers collapse into ensure_command_present
in system_pkg, and the ruby runner rejects an empty suite because
minitest reports success when nothing was required.
2026-08-22 20:30:40 +02:00

19 lines
452 B
Python

"""Node.js runtime provisioning for the JavaScript unit suite."""
from __future__ import annotations
from utils.install.system_pkg import ensure_command_present
def ensure_node_present() -> None:
"""Install the Node.js runtime through the system package manager.
Raises:
RuntimeError: node is still absent after the install attempt.
"""
ensure_command_present("node")
if __name__ == "__main__":
ensure_node_present()