|
13 | 13 |
|
14 | 14 | def test_contract_scales_counts_across_sequential_sessions() -> None: |
15 | 15 | """An SxWxP scenario counts every session without adding concurrency.""" |
16 | | - root = pathlib.Path(__file__).parents[1] |
| 16 | + root = pathlib.Path(__file__).parents[3] |
17 | 17 | env = os.environ.copy() |
18 | 18 | env.pop("VIRTUAL_ENV", None) |
19 | 19 |
|
@@ -42,7 +42,7 @@ def test_contract_scales_counts_across_sequential_sessions() -> None: |
42 | 42 | @pytest.mark.parametrize("scenario", ["0x1x1", "1x0x1", "1x1x0", "wat", "1x1x1x1"]) |
43 | 43 | def test_contract_rejects_invalid_scenarios_without_a_traceback(scenario: str) -> None: |
44 | 44 | """Invalid cardinality is a concise CLI usage error, not an internal crash.""" |
45 | | - root = pathlib.Path(__file__).parents[1] |
| 45 | + root = pathlib.Path(__file__).parents[3] |
46 | 46 | env = os.environ.copy() |
47 | 47 | env.pop("VIRTUAL_ENV", None) |
48 | 48 |
|
@@ -71,7 +71,7 @@ def test_matrix_executes_and_reports_a_multi_session_sample( |
71 | 71 | tmp_path: pathlib.Path, |
72 | 72 | ) -> None: |
73 | 73 | """A live matrix sample builds S sessions serially and reports SxWxP totals.""" |
74 | | - root = pathlib.Path(__file__).parents[1] |
| 74 | + root = pathlib.Path(__file__).parents[3] |
75 | 75 | output = tmp_path / "matrix.json" |
76 | 76 | env = os.environ.copy() |
77 | 77 | env.pop("VIRTUAL_ENV", None) |
@@ -134,15 +134,15 @@ def test_matrix_executes_and_reports_a_multi_session_sample( |
134 | 134 |
|
135 | 135 | def test_sync_matrix_warms_every_session_before_topology_verification() -> None: |
136 | 136 | """A multi-session warmup validates only after building every session.""" |
137 | | - root = pathlib.Path(__file__).parents[1] |
| 137 | + root = pathlib.Path(__file__).parents[3] |
138 | 138 | env = os.environ.copy() |
139 | 139 | env.pop("VIRTUAL_ENV", None) |
140 | 140 |
|
141 | 141 | completed = subprocess.run( |
142 | 142 | ( |
143 | 143 | "uv", |
144 | 144 | "run", |
145 | | - "scripts/bench_engines.py", |
| 145 | + "scripts/bench/engines.py", |
146 | 146 | "matrix", |
147 | 147 | "--shapes", |
148 | 148 | "2x1x1", |
@@ -171,7 +171,7 @@ def test_sync_matrix_warms_every_session_before_topology_verification() -> None: |
171 | 171 | @pytest.mark.parametrize("mode", ["sync", "async"]) |
172 | 172 | def test_build_driver_rejects_a_failed_operation(mode: str) -> None: |
173 | 173 | """A partial plan failure cannot be recorded as a successful timing sample.""" |
174 | | - root = pathlib.Path(__file__).parents[1] |
| 174 | + root = pathlib.Path(__file__).parents[3] |
175 | 175 | env = os.environ.copy() |
176 | 176 | env.pop("VIRTUAL_ENV", None) |
177 | 177 | source = textwrap.dedent( |
@@ -243,7 +243,7 @@ async def run_batch(self, requests): |
243 | 243 |
|
244 | 244 | def test_live_topology_verifier_rejects_a_partial_build() -> None: |
245 | 245 | """A command-successful but incomplete tmux hierarchy is not a valid sample.""" |
246 | | - root = pathlib.Path(__file__).parents[1] |
| 246 | + root = pathlib.Path(__file__).parents[3] |
247 | 247 | env = os.environ.copy() |
248 | 248 | env.pop("VIRTUAL_ENV", None) |
249 | 249 | source = textwrap.dedent( |
@@ -274,7 +274,7 @@ def test_live_topology_verifier_rejects_a_partial_build() -> None: |
274 | 274 |
|
275 | 275 | def test_benchmark_server_uses_an_empty_tmux_config() -> None: |
276 | 276 | """A benchmark daemon cannot inherit geometry or options from user config.""" |
277 | | - root = pathlib.Path(__file__).parents[1] |
| 277 | + root = pathlib.Path(__file__).parents[3] |
278 | 278 | env = os.environ.copy() |
279 | 279 | env.pop("VIRTUAL_ENV", None) |
280 | 280 | source = textwrap.dedent( |
@@ -310,7 +310,7 @@ def test_benchmark_server_uses_an_empty_tmux_config() -> None: |
310 | 310 | ) |
311 | 311 | def test_matrix_rejects_unknown_axis_values(option: str, value: str) -> None: |
312 | 312 | """A misspelled matrix axis cannot silently shrink the benchmark grid.""" |
313 | | - root = pathlib.Path(__file__).parents[1] |
| 313 | + root = pathlib.Path(__file__).parents[3] |
314 | 314 | env = os.environ.copy() |
315 | 315 | env.pop("VIRTUAL_ENV", None) |
316 | 316 |
|
@@ -344,7 +344,7 @@ def test_matrix_rejects_unknown_axis_values(option: str, value: str) -> None: |
344 | 344 |
|
345 | 345 | def test_cleanup_failure_is_rejected() -> None: |
346 | 346 | """A failed session cleanup cannot contaminate later timing samples.""" |
347 | | - root = pathlib.Path(__file__).parents[1] |
| 347 | + root = pathlib.Path(__file__).parents[3] |
348 | 348 | env = os.environ.copy() |
349 | 349 | env.pop("VIRTUAL_ENV", None) |
350 | 350 | source = textwrap.dedent( |
|
0 commit comments