Add Android device build/OS/API Level information to logs. (#58747)
This adds some information about the chosen device to the output log so that we can tell what type of device/OS Level/API Level the test is running on when doing a postmortem on a failed test.
This commit is contained in:
@@ -475,11 +475,11 @@ void cd(dynamic directory) {
|
||||
cwd = directory.path;
|
||||
d = directory;
|
||||
} else {
|
||||
throw 'Unsupported type ${directory.runtimeType} of $directory';
|
||||
throw FileSystemException('Unsupported directory type ${directory.runtimeType}', directory.toString());
|
||||
}
|
||||
|
||||
if (!d.existsSync())
|
||||
throw 'Cannot cd into directory that does not exist: $directory';
|
||||
throw FileSystemException('Cannot cd into directory that does not exist', d.toString());
|
||||
}
|
||||
|
||||
Directory get flutterDirectory => Directory.current.parent.parent;
|
||||
|
||||
Reference in New Issue
Block a user