Skip to content

Commit

Permalink
[test_runner/vm] Provide some troubleshooting info when missing vm te…
Browse files Browse the repository at this point in the history
…st 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]>
  • Loading branch information
parlough authored and Commit Queue committed Jun 27, 2024
1 parent f9cd243 commit 747100e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/test_runner/lib/src/test_suite.dart
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,13 @@ class VMTestSuite extends TestSuite {
hostRunnerPath = targetRunnerPath;
}

if (!File(hostRunnerPath).existsSync()) {
throw Exception(
"Failed to find VM test runner binary at '$hostRunnerPath'.\n"
"Did you include the 'runtime' or 'most' targets in "
'the corresponding build?');
}

if (configuration.useQemu) {
final config = QemuConfig.all[configuration.architecture]!;
initialHostArguments.insert(0, hostRunnerPath);
Expand Down

0 comments on commit 747100e

Please sign in to comment.