Pin customer_testing to the SHA specified in tests.version (#162048)
Closes https://github.com/flutter/flutter/issues/162041. I also converted the `.sh` and `.bat` files (largely) to Dart, mostly because I don't know enough Windows XP command prompt in order to make the change safely. They should still run the same from the CI bootstrapping, but most of the logic is now Dart code. Will send a separate PR to update the `flutter/tests` PR template. /cc @johnmccutchan @Piinks
This commit is contained in:
@@ -8,20 +8,16 @@ REM This should match the ci.sh file in this directory.
|
||||
REM This is called from the LUCI recipes:
|
||||
REM https://github.com/flutter/flutter/blob/main/dev/bots/suite_runners/run_customer_testing_tests.dart
|
||||
|
||||
REM This script does not assume that "flutter update-packages" has been
|
||||
REM run, to allow CIs to save time by skipping that steps since it's
|
||||
REM largely not needed to run the flutter/tests tests.
|
||||
REM
|
||||
REM However, we do need to update this directory.
|
||||
SETLOCAL
|
||||
cd /d %~dp0
|
||||
ECHO.
|
||||
ECHO Updating pub packages...
|
||||
CALL dart pub get
|
||||
CD ..\tools
|
||||
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 . master ..\..\bin\cache\pkg\tests main`) DO git -C ..\..\bin\cache\pkg\tests checkout %%a
|
||||
|
||||
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
|
||||
REM Run the cross-platform script.
|
||||
CALL ..\..\bin\dart.bat ci.dart
|
||||
|
||||
Reference in New Issue
Block a user