MCPcopy Index your code
hub / github.com/python/cpython / update_test_plan

Function update_test_plan

Platforms/Apple/testbed/__main__.py:249–260  ·  view source on GitHub ↗
(testbed_path, platform, args)

Source from the content-addressed store, hash-verified

247
248
249def update_test_plan(testbed_path, platform, args):
250 # Modify the test plan to use the requested test arguments.
251 test_plan_path = testbed_path / f"{platform}Testbed.xctestplan"
252 with test_plan_path.open("r", encoding="utf-8") as f:
253 test_plan = json.load(f)
254
255 test_plan["defaultOptions"]["commandLineArgumentEntries"] = [
256 {"argument": shlex.quote(arg)} for arg in args
257 ]
258
259 with test_plan_path.open("w", encoding="utf-8") as f:
260 json.dump(test_plan, f, indent=2)
261
262
263def run_testbed(

Callers 1

run_testbedFunction · 0.85

Calls 4

quoteMethod · 0.80
openMethod · 0.45
loadMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…