Skip to content

Commit 953f718

Browse files
author
Chris Yang
authored
ios test script checks for ios_test_flutter artifacts (flutter#29554)
1 parent fdee74d commit 953f718

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

testing/run_tests.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,12 +297,13 @@ def EnsureDebugUnoptSkyPackagesAreBuilt():
297297
def EnsureIosTestsAreBuilt(ios_out_dir):
298298
"""Builds the engine variant and the test dylib containing the XCTests"""
299299
tmp_out_dir = os.path.join(out_dir, ios_out_dir)
300+
ios_test_lib = os.path.join(tmp_out_dir, 'libios_test_flutter.dylib')
300301
message = []
301302
message.append('gn --ios --unoptimized --runtime-mode=debug --no-lto --simulator')
302303
message.append('autoninja -C %s ios_test_flutter' % ios_out_dir)
303-
final_message = '%s doesn\'t exist. Please run the following commands: \n%s' % (
304-
ios_out_dir, '\n'.join(message))
305-
assert os.path.exists(tmp_out_dir), final_message
304+
final_message = '%s or %s doesn\'t exist. Please run the following commands: \n%s' % (
305+
ios_out_dir, ios_test_lib, '\n'.join(message))
306+
assert os.path.exists(tmp_out_dir) and os.path.exists(ios_test_lib), final_message
306307

307308

308309
def AssertExpectedXcodeVersion():

0 commit comments

Comments
 (0)