Skip to content
Snippets Groups Projects
Commit 1ffd5f02 authored by Joshua Seaton's avatar Joshua Seaton Committed by Zachary Anderson
Browse files

[fuchsia] Permit relative entries to the fuchsia_tester (#28821)

This change permits
(1) a relative --flutter-shell
(2) relative (source, dill) entries within the test JSON file

and enables portability in the invocation scripts produced by fuchsia's
dart test GN template.
parent cb704dfd
No related merge requests found
......@@ -75,7 +75,7 @@ Future<void> run(List<String> args) async {
try {
Cache.flutterRoot = tempDir.path;
final String shellPath = argResults[_kOptionShell];
final String shellPath = fs.file(argResults[_kOptionShell]).resolveSymbolicLinksSync();
if (!fs.isFileSync(shellPath)) {
throwToolExit('Cannot find Flutter shell at $shellPath');
}
......@@ -128,7 +128,9 @@ Future<void> run(List<String> args) async {
final List<Map<String, dynamic>> jsonList = List<Map<String, dynamic>>.from(
json.decode(fs.file(argResults[_kOptionTests]).readAsStringSync()));
for (Map<String, dynamic> map in jsonList) {
tests[map['source']] = map['dill'];
final String source = fs.file(map['source']).resolveSymbolicLinksSync();
final String dill = fs.file(map['dill']).resolveSymbolicLinksSync();
tests[source] = dill;
}
exitCode = await runTests(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment