fix(test): stabilize MCP startup and subtitle cancellation checks
Gitea CI / Check code and tests (pull_request) Successful in 6m16s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m31s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s
Gitea CI / Build Android APK (pull_request) Successful in 5m13s
Gitea CI / Build Windows x64 app (pull_request) Successful in 19m20s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 1m1s
Gitea CI / Check code and tests (pull_request) Successful in 6m16s
Gitea CI / Audit and package Windows x64 (pull_request) Successful in 1m31s
Gitea CI / Gitea CI passed (pull_request) Successful in 3s
Gitea CI / Build Android APK (pull_request) Successful in 5m13s
Gitea CI / Build Windows x64 app (pull_request) Successful in 19m20s
Gitea CI / Assemble and validate CI artifacts (pull_request) Successful in 1m1s
Launch the standard-library MCP bridge directly with the Flutter SDK native Dart executable, without shell or pub startup. Verify it works without Dart on PATH and include stderr when its existing response deadline expires. Share native Dart selection with generated-code checks and wait for subtitle workflow completion notifications instead of a fixed 10 ms delay.
This commit is contained in:
1 parent
0343e2f723
commit
ab8f3f5bd3
4 files changed
+55
-13
No files matched your search
@@ -0,0 +1,27 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:path/path.dart' as p;
|
||||
|
||||
/// Uses the SDK running Flutter tests without invoking its shell launcher.
|
||||
String flutterTestDartExecutable() {
|
||||
final root = Platform.environment['FLUTTER_ROOT'];
|
||||
if (root == null || root.isEmpty) {
|
||||
throw StateError(
|
||||
'Flutter tests require FLUTTER_ROOT to select their Dart SDK.',
|
||||
);
|
||||
}
|
||||
final executable = p.join(
|
||||
root,
|
||||
'bin',
|
||||
'cache',
|
||||
'dart-sdk',
|
||||
'bin',
|
||||
Platform.isWindows ? 'dart.exe' : 'dart',
|
||||
);
|
||||
if (!File(executable).existsSync()) {
|
||||
throw StateError(
|
||||
'The Flutter test SDK is missing its native Dart executable.',
|
||||
);
|
||||
}
|
||||
return executable;
|
||||
}
|
||||
Reference in new issue
Block a user