[flutter_tools] use throwToolExit in flutter drive (#69220)

* [flutter_tools] use throwToolExit

* Update drive.dart
This commit is contained in:
Jonah Williams 2020-10-28 11:40:39 -07:00 committed by GitHub
parent 91ab73ab23
commit 8b9e9680d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,7 +226,7 @@ class DriveCommand extends RunCommandBase {
await driverService.stop(userIdentifier: userIdentifier, writeSkslOnExit: skslFile);
}
if (testResult != 0) {
return FlutterCommandResult.fail();
throwToolExit(null);
}
return FlutterCommandResult.success();
}