From fb483ee0d6960c77bee1c130b8b4970ad36af1a8 Mon Sep 17 00:00:00 2001 From: gaaclarke <30870216+gaaclarke@users.noreply.github.com> Date: Wed, 29 Sep 2021 10:07:33 -0700 Subject: [PATCH] made android unit tests not require the host engine variant to exist (flutter/engine#28925) --- engine/src/flutter/testing/run_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/testing/run_tests.py b/engine/src/flutter/testing/run_tests.py index 3d1fc40bd7..cd614aacc6 100755 --- a/engine/src/flutter/testing/run_tests.py +++ b/engine/src/flutter/testing/run_tests.py @@ -538,7 +538,7 @@ def main(): help='A single Java test class to run.') parser.add_argument('--android-variant', dest='android_variant', action='store', default='android_debug_unopt', - help='The engine build variant to run java tests for') + help='The engine build variant to run java or android tests for') parser.add_argument('--ios-variant', dest='ios_variant', action='store', default='ios_debug_sim_unopt', help='The engine build variant to run objective-c tests for') @@ -561,7 +561,7 @@ def main(): types = args.type.split(',') build_dir = os.path.join(out_dir, args.variant) - if args.type != 'java': + if args.type != 'java' and args.type != 'android': assert os.path.exists(build_dir), 'Build variant directory %s does not exist!' % build_dir if args.sanitizer_suppressions: