Skip to content

Commit 747100e

Browse files
parloughCommit Queue
authored andcommitted
[test_runner/vm] Provide some troubleshooting info when missing vm test runner
TEST=ci and locally with missing runner Change-Id: Ia96829097dc05bea6a683dbefba36d1d6fa96ebb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/373325 Reviewed-by: Nate Bosch <[email protected]> Reviewed-by: Alexander Markov <[email protected]> Commit-Queue: Alexander Markov <[email protected]> Reviewed-by: Ryan Macnak <[email protected]>
1 parent f9cd243 commit 747100e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pkg/test_runner/lib/src/test_suite.dart

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,13 @@ class VMTestSuite extends TestSuite {
280280
hostRunnerPath = targetRunnerPath;
281281
}
282282

283+
if (!File(hostRunnerPath).existsSync()) {
284+
throw Exception(
285+
"Failed to find VM test runner binary at '$hostRunnerPath'.\n"
286+
"Did you include the 'runtime' or 'most' targets in "
287+
'the corresponding build?');
288+
}
289+
283290
if (configuration.useQemu) {
284291
final config = QemuConfig.all[configuration.architecture]!;
285292
initialHostArguments.insert(0, hostRunnerPath);

0 commit comments

Comments
 (0)