tester fully decoupled

This commit is contained in:
2026-04-12 05:50:08 -03:00
parent 85a856b7ac
commit 3e625c2a27
10 changed files with 63 additions and 208 deletions

View File

@@ -271,16 +271,17 @@ def copy_cfg(output_dir: Path, room: str):
# Now in cfg/<room>/soleprint/
room_soleprint = room_cfg / "soleprint"
if room_soleprint.exists():
systems = {"artery", "atlas", "station"}
for item in room_soleprint.iterdir():
if item.is_file():
if item.name in systems:
# Merge system dirs into already-copied framework code
log.info(f" Merging {room} {item.name}...")
merge_into(item, output_dir / item.name)
elif item.is_file():
copy_path(item, output_dir / item.name)
elif item.is_dir():
# Copy non-system dirs as-is (nginx/, etc.)
copy_path(item, output_dir / item.name)
# Merge room-specific system configs from soleprint subfolder
for system in ["artery", "atlas", "station"]:
room_system = room_soleprint / system
if room_system.exists():
log.info(f" Merging {room} {system}...")
merge_into(room_system, output_dir / system)
def build_soleprint(output_dir: Path, room: str):