This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,20 @@ import 'package:args/command_runner.dart';
1010import 'build.dart' ;
1111import 'clean.dart' ;
1212import 'common.dart' ;
13+ import 'environment.dart' ;
1314import 'licenses.dart' ;
1415import 'test_runner.dart' ;
16+ import 'utils.dart' ;
17+
18+ final TestCommand testCommand = TestCommand ();
1519
1620CommandRunner runner = CommandRunner <bool >(
1721 'felt' ,
1822 'Command-line utility for building and testing Flutter web engine.' ,
1923)
2024 ..addCommand (CleanCommand ())
2125 ..addCommand (LicensesCommand ())
22- ..addCommand (TestCommand () )
26+ ..addCommand (testCommand )
2327 ..addCommand (BuildCommand ());
2428
2529void main (List <String > args) async {
@@ -64,6 +68,16 @@ void _cleanup() {
6468 directory.deleteSync (recursive: true );
6569 }
6670 }
71+
72+ // Many tabs left open after Safari runs, quit safari.
73+ if (testCommand.browser == 'safari' ) {
74+ print ('INFO: Safari tests run. Quit Safari.' );
75+ startProcess (
76+ 'osascript' ,
77+ ['dev/quit_safari.scpt' ],
78+ workingDirectory: environment.webUiRootDir.path,
79+ );
80+ }
6781}
6882
6983void _listenToShutdownSignals () {
You can’t perform that action at this time.
0 commit comments