Migrate run_tests.py to dart pub get (flutter/engine#31181)

This commit is contained in:
Daco Harkes 2022-02-02 08:12:27 +01:00 committed by GitHub
parent 12441dd36b
commit 3f08ba3ad1

View File

@ -403,12 +403,12 @@ def RunDartTests(build_dir, filter, verbose_dart_snapshot):
# Before running Dart tests, make sure to run just that target (NOT the whole engine)
EnsureDebugUnoptSkyPackagesAreBuilt()
# Now that we have the Sky packages at the hardcoded location, run `pub get`.
# Now that we have the Sky packages at the hardcoded location, run `dart pub get`.
RunEngineExecutable(
build_dir,
os.path.join('dart-sdk', 'bin', 'pub'),
os.path.join('dart-sdk', 'bin', 'dart'),
None,
flags=['get', '--offline'],
flags=['pub', 'get', '--offline'],
cwd=dart_tests_dir,
)