pub global deactivate devtools before installing (#82491)

* pub global deactivate devtools before installing
* upgrade devtools to latest
This commit is contained in:
Christopher Fujino 2021-05-13 17:13:03 -07:00 committed by GitHub
parent 14546bfad1
commit 855ada1d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1436,6 +1436,12 @@ class DevToolsMemoryTest {
}
Future<void> _launchDevTools() async {
// To mitigate https://github.com/flutter/flutter/issues/82142
await exec(pubBin, <String>[
'global',
'deactivate',
'devtools',
], canFail: true);
// The version of devtools is pinned. If we pub global activate devtools and an
// upstream devtools release breaks our CI, it will manifest on an unrelated
// commit, making it more difficult to determine the cause.
@ -1445,7 +1451,7 @@ class DevToolsMemoryTest {
'global',
'activate',
'devtools',
'2.2.2',
'2.2.3',
]);
_devToolsProcess = await startProcess(
pubBin,