From b7e0926db939361fda8f62c34f5d9b257ccfeeb5 Mon Sep 17 00:00:00 2001 From: Chris Yang Date: Fri, 5 Nov 2021 14:43:01 -0700 Subject: [PATCH] ios test script checks for `ios_test_flutter` artifacts (flutter/engine#29554) --- engine/src/flutter/testing/run_tests.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/testing/run_tests.py b/engine/src/flutter/testing/run_tests.py index 1c12894c0d..ba8fcd4263 100755 --- a/engine/src/flutter/testing/run_tests.py +++ b/engine/src/flutter/testing/run_tests.py @@ -297,12 +297,13 @@ def EnsureDebugUnoptSkyPackagesAreBuilt(): def EnsureIosTestsAreBuilt(ios_out_dir): """Builds the engine variant and the test dylib containing the XCTests""" tmp_out_dir = os.path.join(out_dir, ios_out_dir) + ios_test_lib = os.path.join(tmp_out_dir, 'libios_test_flutter.dylib') message = [] message.append('gn --ios --unoptimized --runtime-mode=debug --no-lto --simulator') message.append('autoninja -C %s ios_test_flutter' % ios_out_dir) - final_message = '%s doesn\'t exist. Please run the following commands: \n%s' % ( - ios_out_dir, '\n'.join(message)) - assert os.path.exists(tmp_out_dir), final_message + final_message = '%s or %s doesn\'t exist. Please run the following commands: \n%s' % ( + ios_out_dir, ios_test_lib, '\n'.join(message)) + assert os.path.exists(tmp_out_dir) and os.path.exists(ios_test_lib), final_message def AssertExpectedXcodeVersion():