Xcode concatenates the test argument array, losing quoting in the process.
(cherry picked from commit
558936bec1f1e0f8346063a8cb2b2782d085178e)
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
--- /dev/null
+The iOS testbed now correctly handles test arguments that contain spaces.
import argparse
import json
import re
+import shlex
import shutil
import subprocess
import sys
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: