Skip to content

Commit 76382d5

Browse files
authored
Allow iOS unit tests to run on Xcode 13 (flutter#27850)
1 parent 0127f0e commit 76382d5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

testing/run_tests.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,12 +327,11 @@ def AssertExpectedJavaVersion():
327327

328328

329329
def AssertExpectedXcodeVersion():
330-
"""Checks that the user has a recent version of Xcode installed"""
331-
EXPECTED_MAJOR_VERSION = ['11', '12']
330+
"""Checks that the user has a version of Xcode installed"""
332331
version_output = subprocess.check_output(['xcodebuild', '-version'])
333-
match = re.match("Xcode (\d+)", version_output)
332+
match = re.match(b"Xcode (\d+)", version_output)
334333
message = "Xcode must be installed to run the iOS embedding unit tests"
335-
assert match.group(1) in EXPECTED_MAJOR_VERSION, message
334+
assert match, message
336335

337336

338337
def RunJavaTests(filter, android_variant='android_debug_unopt'):

0 commit comments

Comments
 (0)