Unverified Commit 53125203 authored by Zachary Anderson's avatar Zachary Anderson Committed by GitHub

[flutter_tool] Pin DevTools to 2.4.0 (#86124)

parent 84e57678
...@@ -178,6 +178,7 @@ class DevtoolsServerLauncher extends DevtoolsLauncher { ...@@ -178,6 +178,7 @@ class DevtoolsServerLauncher extends DevtoolsLauncher {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0',
]); ]);
if (_devToolsActivateProcess.exitCode != 0) { if (_devToolsActivateProcess.exitCode != 0) {
_logger.printError( _logger.printError(
......
...@@ -178,7 +178,7 @@ void main() { ...@@ -178,7 +178,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.6', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -186,8 +186,9 @@ void main() { ...@@ -186,8 +186,9 @@ void main() {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0',
], ],
stdout: 'Activated DevTools 0.9.6', stdout: 'Activated DevTools 2.4.0',
), ),
FakeCommand( FakeCommand(
command: const <String>[ command: const <String>[
...@@ -231,8 +232,9 @@ void main() { ...@@ -231,8 +232,9 @@ void main() {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0'
], ],
stdout: 'Activated DevTools 0.9.5', stdout: 'Activated DevTools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -240,7 +242,7 @@ void main() { ...@@ -240,7 +242,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.5', stdout: 'devtools 2.4.0',
), ),
FakeCommand( FakeCommand(
command: const <String>[ command: const <String>[
...@@ -276,7 +278,7 @@ void main() { ...@@ -276,7 +278,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.5', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -284,8 +286,9 @@ void main() { ...@@ -284,8 +286,9 @@ void main() {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0'
], ],
stdout: 'Activated DevTools 0.9.5', stdout: 'Activated DevTools 2.4.0',
), ),
FakeCommand( FakeCommand(
command: const <String>[ command: const <String>[
...@@ -326,7 +329,7 @@ void main() { ...@@ -326,7 +329,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.6', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -353,7 +356,7 @@ void main() { ...@@ -353,7 +356,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.6', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -397,7 +400,7 @@ void main() { ...@@ -397,7 +400,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.6', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -405,6 +408,7 @@ void main() { ...@@ -405,6 +408,7 @@ void main() {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0',
], ],
stderr: 'Error - could not activate devtools', stderr: 'Error - could not activate devtools',
exitCode: 1, exitCode: 1,
...@@ -442,7 +446,7 @@ void main() { ...@@ -442,7 +446,7 @@ void main() {
'global', 'global',
'list', 'list',
], ],
stdout: 'devtools 0.9.5', stdout: 'devtools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
...@@ -450,8 +454,9 @@ void main() { ...@@ -450,8 +454,9 @@ void main() {
'global', 'global',
'activate', 'activate',
'devtools', 'devtools',
'2.4.0'
], ],
stdout: 'Activated DevTools 0.9.6', stdout: 'Activated DevTools 2.4.0',
), ),
const FakeCommand( const FakeCommand(
command: <String>[ command: <String>[
......
...@@ -450,7 +450,7 @@ void main() { ...@@ -450,7 +450,7 @@ void main() {
// Ensure that DevTools is activated. // Ensure that DevTools is activated.
final ProcessResult pubResult = await processManager.run(<String>[ final ProcessResult pubResult = await processManager.run(<String>[
fileSystem.path.join(flutterRoot, 'bin', 'cache', 'dart-sdk', 'bin', 'dart'), fileSystem.path.join(flutterRoot, 'bin', 'cache', 'dart-sdk', 'bin', 'dart'),
'pub', 'global', 'activate', 'devtools', 'pub', 'global', 'activate', 'devtools', '2.4.0',
], workingDirectory: testDirectory).timeout(const Duration(seconds: 20)); ], workingDirectory: testDirectory).timeout(const Duration(seconds: 20));
if (pubResult.exitCode != 0) { if (pubResult.exitCode != 0) {
print('Unable to activate devtools:\n${pubResult.stderr}'); print('Unable to activate devtools:\n${pubResult.stderr}');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment