Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-141442: Add escaping to iOS testbed arguments (GH-141443)
Xcode concatenates the test argument array, losing quoting in the process.
(cherry picked from commit 558936b)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
  • Loading branch information
freakboy3742 authored and miss-islington committed Nov 12, 2025
commit 76e9e399a6e3e5e9623543ab55358ff4b83234ba
3 changes: 2 additions & 1 deletion Apple/testbed/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import json
import os
import re
import shlex
import shutil
import subprocess
import sys
Expand Down Expand Up @@ -252,7 +253,7 @@ def update_test_plan(testbed_path, platform, args):
test_plan = json.load(f)

test_plan["defaultOptions"]["commandLineArgumentEntries"] = [
{"argument": arg} for arg in args
{"argument": shlex.quote(arg)} for arg in args
]

with test_plan_path.open("w", encoding="utf-8") as f:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The iOS testbed now correctly handles test arguments that contain spaces.
Loading