mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
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.
19 lines
452 B
Python
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()
|