We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231cd81 commit f141fa9Copy full SHA for f141fa9
test_common/lib/utilities.dart
@@ -15,8 +15,9 @@ const newDdcTypeSystemVersion = '3.3.0-242.0.dev';
15
/// The path to the webdev directory in the local machine, e.g.
16
/// '/workstation/webdev'.
17
String get webdevPath {
18
- final pathParts = p.split(p.current);
19
- // We expect all tests to be run from the webdev mono-repo:
+ // Use `Directory.current` instead of `p.current` as the latter is allowed to
+ // change with `DartUri.currentDirectory` modifications.
20
+ final pathParts = p.split(Directory.current.path);
21
assert(pathParts.contains(webdevDirName));
22
return p.joinAll(
23
pathParts.sublist(0, pathParts.lastIndexOf(webdevDirName) + 1),
0 commit comments