MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / start_suite

Function start_suite

scripts/run-test-wave.py:178–207  ·  view source on GitHub ↗
(
    suite: str,
    runner_command: list[str],
    log_dir: pathlib.Path,
    timeout: int,
)

Source from the content-addressed store, hash-verified

176
177
178def start_suite(
179 suite: str,
180 runner_command: list[str],
181 log_dir: pathlib.Path,
182 timeout: int,
183) -> ActiveSuite | None:
184 log_path = log_dir / f"{suite}.log"
185 log_file = log_path.open("wb")
186 popen_args: dict[str, object] = {
187 "stdout": log_file,
188 "stderr": subprocess.STDOUT,
189 }
190 if os.name == "nt":
191 popen_args["creationflags"] = subprocess.CREATE_NEW_PROCESS_GROUP
192 else:
193 popen_args["start_new_session"] = True
194 try:
195 process = subprocess.Popen(runner_command + [suite], **popen_args)
196 except OSError as exc:
197 log_file.close()
198 append_log(log_path, f" FAIL: could not start suite {suite!r}: {exc}")
199 return None
200 return ActiveSuite(
201 name=suite,
202 process=process,
203 log_path=log_path,
204 log_file=log_file,
205 started=time.monotonic(),
206 timeout=timeout,
207 )
208
209
210def windows_tree_cleanup_blocker(pid: int) -> str | None:

Callers 1

run_waveFunction · 0.85

Calls 4

append_logFunction · 0.85
ActiveSuiteClass · 0.85
openMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected