From 1ffd5f02d641823c3799cf84b11623ee546f32e3 Mon Sep 17 00:00:00 2001 From: Joshua Seaton Date: Mon, 4 Mar 2019 10:52:58 -0800 Subject: [PATCH] [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. --- packages/flutter_tools/bin/fuchsia_tester.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/bin/fuchsia_tester.dart b/packages/flutter_tools/bin/fuchsia_tester.dart index 7943d51ea6..dd3756e662 100644 --- a/packages/flutter_tools/bin/fuchsia_tester.dart +++ b/packages/flutter_tools/bin/fuchsia_tester.dart @@ -75,7 +75,7 @@ Future run(List 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 run(List args) async { final List> jsonList = List>.from( json.decode(fs.file(argResults[_kOptionTests]).readAsStringSync())); for (Map 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(