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:
Greg Spencer
2020-06-05 14:02:07 -07:00
committed by GitHub
parent 5722adf11d
commit ab68721a5d
3 changed files with 103 additions and 32 deletions

View File

@@ -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;