diff --git a/Assets/Scripts/Editor/InventoryGridParityCapture.cs b/Assets/Scripts/Editor/InventoryGridParityCapture.cs index 1f476b020..dd05b8d5a 100644 --- a/Assets/Scripts/Editor/InventoryGridParityCapture.cs +++ b/Assets/Scripts/Editor/InventoryGridParityCapture.cs @@ -914,6 +914,8 @@ public static class InventoryGridParityCapture var iconMultiplier = panel.NodePrototype.GetComponent().Icon.pixelsPerUnitMultiplier; var grid = panel.Grid; state.Setup?.Invoke(panel, fixture); + // A bay shown after the thermal view on the same panel must not draw pipes. + if (state.Cargo) panel.Display(fixture.Ship, false, true); if (state.Cargo) panel.Display(fixture.Ship.CargoBays.First()); else panel.Display(fixture.Ship, state.Hud, state.Thermal); MutateLook(panel, state); diff --git a/tests/mutation_tests_inventory_grid.py b/tests/mutation_tests_inventory_grid.py index fe8cc5346..861a3783a 100644 --- a/tests/mutation_tests_inventory_grid.py +++ b/tests/mutation_tests_inventory_grid.py @@ -13,7 +13,7 @@ side. A mutant whose reading is not 1.2 above the bound is recorded as UNCLAIMED One Unity batch instance runs on Starfire at a time, so each launch takes the lock directory F:/aeth-wt/unity.lock.d first. Run from the repo root: python tests/mutation_tests_inventory_grid.py -The switch's mutants (SWITCH_MUTANTS) run with: python tests/mutation_tests_inventory_grid.py --switch +The switch's mutants (SWITCH_MUTANTS) run with: python tests/mutation_tests_inventory_grid.py --switch [mutant ...] Exit code 0 only if the control passes, every claimed mutant is killed, and the bound sits where the margin rule puts it. """ from __future__ import annotations @@ -153,7 +153,7 @@ def replace_unique(path: Path, anchor: str, mutated: str, occurrences: int = 1) return original -def run_switch(golden: str) -> int: +def run_switch(golden: str, only: list[str]) -> int: SCRATCH.mkdir(parents=True, exist_ok=True) args = ["-hullOnly", "-recordsIn", golden] failures: list[str] = [] @@ -185,8 +185,8 @@ def run_switch(golden: str) -> int: def main() -> int: - if len(sys.argv) == 3 and sys.argv[1] == "--switch": - return run_switch(sys.argv[2]) + if len(sys.argv) >= 3 and sys.argv[1] == "--switch": + return run_switch(sys.argv[2], sys.argv[3:]) SCRATCH.mkdir(parents=True, exist_ok=True) failures: list[str] = [] readings: dict[str, tuple[int, float]] = {}