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

Function start_suite

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

Source from the content-addressed store, hash-verified

92
93
94def start_suite(
95 suite: str,
96 runner_command: list[str],
97 log_dir: pathlib.Path,
98 timeout: int,
99) -> ActiveSuite | None:
100 log_path = log_dir / f"{suite}.log"
101 log_file = log_path.open("wb")
102 popen_args: dict[str, object] = {
103 "stdout": log_file,
104 "stderr": subprocess.STDOUT,
105 }
106 if os.name == "nt":
107 popen_args["creationflags"] = subprocess.CREATE_NEW_PROCESS_GROUP
108 else:
109 popen_args["start_new_session"] = True
110 try:
111 process = subprocess.Popen(runner_command + [suite], **popen_args)
112 except OSError as exc:
113 log_file.close()
114 append_log(log_path, f" FAIL: could not start suite {suite!r}: {exc}")
115 return None
116 return ActiveSuite(
117 name=suite,
118 process=process,
119 log_path=log_path,
120 log_file=log_file,
121 started=time.monotonic(),
122 timeout=timeout,
123 )
124
125
126def windows_descendants(pid: int, timeout: int) -> bool:

Callers 1

run_waveFunction · 0.85

Calls 3

append_logFunction · 0.85
ActiveSuiteClass · 0.85
closeMethod · 0.45

Tested by

no test coverage detected