Skip to content

Commit c54ade0

Browse files
nateboschCommit Bot
authored and
Commit Bot
committed
Use package config in more test runner config
Change-Id: I7ac7c619be321c8e63d6b95537d68f7b8617da0b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/244046 Auto-Submit: Nate Bosch <[email protected]> Reviewed-by: Michael Thomsen <[email protected]> Commit-Queue: Michael Thomsen <[email protected]>
1 parent 0baa3c1 commit c54ade0

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

pkg/test_runner/lib/src/options.dart

+10-5
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,10 @@ has been specified on the command line.''',
613613
var value = data[name];
614614
if (data[name] == option.defaultValue ||
615615
(name == 'packages' &&
616-
value == Repository.uri.resolve('.packages').toFilePath())) {
616+
value ==
617+
Repository.uri
618+
.resolve('.dart_tool/package_config.json')
619+
.toFilePath())) {
617620
continue;
618621
}
619622

@@ -634,8 +637,9 @@ has been specified on the command line.''',
634637
// Only one value in the configuration map is mutable:
635638
if (selectors.containsKey('observatory_ui')) {
636639
if (selectors.length == 1) {
637-
configuration['packages'] =
638-
Repository.uri.resolve('.packages').toFilePath();
640+
configuration['packages'] = Repository.uri
641+
.resolve('.dart_tool/package_config.json')
642+
.toFilePath();
639643
} else {
640644
// Make a new configuration whose selectors map only contains
641645
// observatory_ui, and remove observatory_ui from the original
@@ -648,8 +652,9 @@ has been specified on the command line.''',
648652
selectors.remove('observatory_ui');
649653

650654
// Set the packages flag.
651-
observatoryConfiguration['packages'] =
652-
Repository.uri.resolve('.packages').toFilePath();
655+
observatoryConfiguration['packages'] = Repository.uri
656+
.resolve('.dart_tool/package_config.json')
657+
.toFilePath();
653658

654659
return [
655660
..._expandConfigurations(configuration, selectors),

0 commit comments

Comments
 (0)