Skip to content

Commit 3deffab

Browse files
jensjohaCommit Queue
authored andcommitted
[CFE] Update flutter_gallery_leak_tester to use flutter/dev/integration_tests/new_gallery
For a few months the "original" flutter gallery has had compile errors and the weekly bot has been a lot slower (and doesn't really test the default "advanced invalidation"). This updates the compile target to the one in flutter/dev/integration_tests/new_gallery which doesn't have compile time errors. Change-Id: I59aa701700bc6b3530d73d9c0474dbff525288c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/430700 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Jens Johansen <[email protected]>
1 parent 91374ff commit 3deffab

File tree

1 file changed

+9
-20
lines changed

1 file changed

+9
-20
lines changed

pkg/front_end/test/flutter_gallery_leak_tester.dart

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -61,27 +61,16 @@ Future<void> main(List<String> args) async {
6161

6262
Directory gallery = new Directory("$rootPath/gallery");
6363
if (!gallery.existsSync()) {
64-
print("Gallery not found... Attempting to clone via git.");
65-
// git clone https://github.com/flutter/gallery.git
66-
Process process = await Process.start("git", [
67-
"clone",
68-
"https://github.com/flutter/gallery.git",
69-
"$rootPath/gallery"
70-
]);
71-
process.stdout
72-
.transform(utf8.decoder)
73-
.transform(new LineSplitter())
74-
.listen((line) {
75-
print("git stdout> $line");
76-
});
77-
process.stderr
78-
.transform(utf8.decoder)
79-
.transform(new LineSplitter())
80-
.listen((line) {
81-
print("git stderr> $line");
82-
});
64+
print("Gallery not found... Copying from flutter dir.");
65+
66+
Directory galleryFlutterDev =
67+
new Directory("$rootPath/flutter/dev/integration_tests/new_gallery");
68+
69+
// Copy it.
70+
Process process = await Process.start(
71+
"cp", ["-r", galleryFlutterDev.path, "$rootPath/gallery"]);
8372
int processExitCode = await process.exitCode;
84-
print("Exit code from git: $processExitCode");
73+
print("Exit code from cp: $processExitCode");
8574

8675
process = await Process.start("../flutter/bin/flutter", ["pub", "get"],
8776
workingDirectory: "$rootPath/gallery/");

0 commit comments

Comments
 (0)