[ci] Add LUCI repo tool tests (#3964)

- Adds a LUCI version of the Linux repo tools test, as a first test of a Linux repository test being migrated to LUCI.
- Fixes the Windows repo tools test to actually run a test, which it wasn't due to a mistaken duplicate yaml file, only one of which was correct (the one that wasn't being used).
This commit is contained in:
stuartmorgan
2023-05-12 15:24:12 -07:00
committed by GitHub
parent 5763d4475c
commit a2aac1275d
4 changed files with 20 additions and 9 deletions

View File

@ -283,7 +283,9 @@ void main() {
'Test for publish-check command.',
);
runner.addCommand(PublishCheckCommand(packagesDir,
processRunner: processRunner, httpClient: mockClient));
platform: mockPlatform,
processRunner: processRunner,
httpClient: mockClient));
processRunner.mockProcessesForExecutable['flutter'] = <FakeProcessInfo>[
FakeProcessInfo(MockProcess(exitCode: 1, stdout: 'Some error from pub'),
@ -339,7 +341,9 @@ void main() {
'Test for publish-check command.',
);
runner.addCommand(PublishCheckCommand(packagesDir,
processRunner: processRunner, httpClient: mockClient));
platform: mockPlatform,
processRunner: processRunner,
httpClient: mockClient));
final List<String> output =
await runCapturingPrint(runner, <String>['publish-check']);