MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / run_probe

Function run_probe

tests/test_cross_platform_locks.py:67–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 )
66
67 def run_probe() -> str:
68 result = subprocess.run([sys.executable, "-c", probe], capture_output=True, text=True)
69 assert result.returncode == 0, result.stderr # probe itself ran cleanly
70 return result.stdout.strip()
71
72 fh = lock_path.open("a+", encoding="utf-8")
73 locks.flock(fh, exclusive=True)

Calls 1

runMethod · 0.80

Tested by

no test coverage detected