mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Allow iOS unit tests to run on Xcode 13 (flutter/engine#27850)
This commit is contained in:
parent
4ea5e1a5e8
commit
b5409c0989
@ -327,12 +327,11 @@ def AssertExpectedJavaVersion():
|
||||
|
||||
|
||||
def AssertExpectedXcodeVersion():
|
||||
"""Checks that the user has a recent version of Xcode installed"""
|
||||
EXPECTED_MAJOR_VERSION = ['11', '12']
|
||||
"""Checks that the user has a version of Xcode installed"""
|
||||
version_output = subprocess.check_output(['xcodebuild', '-version'])
|
||||
match = re.match("Xcode (\d+)", version_output)
|
||||
match = re.match(b"Xcode (\d+)", version_output)
|
||||
message = "Xcode must be installed to run the iOS embedding unit tests"
|
||||
assert match.group(1) in EXPECTED_MAJOR_VERSION, message
|
||||
assert match, message
|
||||
|
||||
|
||||
def RunJavaTests(filter, android_variant='android_debug_unopt'):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user