Unverified Commit 8c3d7e95 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Run examples_smoke_test on Linux (#142736)

Flutter apps run on Linux.  Remove TODO.
parent e5a922fe
...@@ -841,19 +841,16 @@ Future<void> _runFrameworkTests() async { ...@@ -841,19 +841,16 @@ Future<void> _runFrameworkTests() async {
} }
Future<void> runExampleTests() async { Future<void> runExampleTests() async {
// TODO(gspencergoog): Currently Linux LUCI bots can't run desktop Flutter applications, https://github.com/flutter/flutter/issues/90676 await runCommand(
if (!Platform.isLinux || ciProvider != CiProviders.luci) { flutter,
await runCommand( <String>['config', '--enable-${Platform.operatingSystem}-desktop'],
flutter, workingDirectory: flutterRoot,
<String>['config', '--enable-${Platform.operatingSystem}-desktop'], );
workingDirectory: flutterRoot, await runCommand(
); dart,
await runCommand( <String>[path.join(flutterRoot, 'dev', 'tools', 'examples_smoke_test.dart')],
dart, workingDirectory: path.join(flutterRoot, 'examples', 'api'),
<String>[path.join(flutterRoot, 'dev', 'tools', 'examples_smoke_test.dart')], );
workingDirectory: path.join(flutterRoot, 'examples', 'api'),
);
}
for (final FileSystemEntity entity in Directory(path.join(flutterRoot, 'examples')).listSync()) { for (final FileSystemEntity entity in Directory(path.join(flutterRoot, 'examples')).listSync()) {
if (entity is! Directory || !Directory(path.join(entity.path, 'test')).existsSync()) { if (entity is! Directory || !Directory(path.join(entity.path, 'test')).existsSync()) {
continue; continue;
......
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