Actually run customer_testing shard on Windows (#109336)

This commit is contained in:
Ian Hickson 2022-08-10 16:25:23 -07:00 committed by GitHub
parent 5f7a5ec6cf
commit a1af1bb92f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

View file

@ -8,12 +8,20 @@ REM This should match the ci.sh file in this directory.
REM This is called from the LUCI recipes:
REM https://flutter.googlesource.com/recipes/+/refs/heads/master/recipe_modules/adhoc_validation/resources/customer_testing.bat
dart __deprecated_pub get
ECHO.
ECHO Updating pub packages...
CALL dart pub get
CD ..\tools
dart __deprecated_pub get
CALL dart pub get
CD ..\customer_testing
ECHO.
ECHO Finding correct version of customer tests...
CMD /S /C "IF EXIST "..\..\bin\cache\pkg\tests\" RMDIR /S /Q ..\..\bin\cache\pkg\tests"
git clone https://github.com/flutter/tests.git ..\..\bin\cache\pkg\tests
FOR /F "usebackq tokens=*" %%a IN (`dart --enable-asserts ..\tools\bin\find_commit.dart ..\..\bin\cache\pkg\tests`) DO git -C ..\..\bin\cache\pkg\tests checkout %%a
dart --enable-asserts run_tests.dart --verbose --skip-on-fetch-failure --skip-template ..\..\bin\cache\pkg\tests\registry\*.test
ECHO.
ECHO Running tests...
CD ..\..\bin\cache\pkg\tests
CALL dart --enable-asserts ..\..\..\..\dev\customer_testing\run_tests.dart --verbose --skip-on-fetch-failure --skip-template registry/*.test

View file

@ -15,8 +15,8 @@ set -ex
# largely not needed to run the flutter/tests tests.
#
# However, we do need to update this directory and the tools directory.
dart __deprecated_pub get
(cd ../tools; dart __deprecated_pub get) # used for find_commit.dart below
dart pub get
(cd ../tools; dart pub get) # used for find_commit.dart below
# Next we need to update the flutter/tests checkout.
#