Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit f30da96

Browse files
author
nturgut
committed
adding an apple script to quit safari
1 parent dfb7d93 commit f30da96

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

lib/web_ui/dev/felt.dart

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,20 @@ import 'package:args/command_runner.dart';
1010
import 'build.dart';
1111
import 'clean.dart';
1212
import 'common.dart';
13+
import 'environment.dart';
1314
import 'licenses.dart';
1415
import 'test_runner.dart';
16+
import 'utils.dart';
17+
18+
final TestCommand testCommand = TestCommand();
1519

1620
CommandRunner 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

2529
void 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

6983
void _listenToShutdownSignals() {

lib/web_ui/dev/quit_safari.scpt

760 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)