(testbed_path, platform, args)
| 247 | |
| 248 | |
| 249 | def 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 | |
| 263 | def run_testbed( |
no test coverage detected
searching dependent graphs…