| Index: sdk/lib/_internal/pub_generated/test/cache/repair/reinstalls_git_packages_test.dart
|
| diff --git a/sdk/lib/_internal/pub/test/cache/repair/reinstalls_git_packages_test.dart b/sdk/lib/_internal/pub_generated/test/cache/repair/reinstalls_git_packages_test.dart
|
| similarity index 67%
|
| copy from sdk/lib/_internal/pub/test/cache/repair/reinstalls_git_packages_test.dart
|
| copy to sdk/lib/_internal/pub_generated/test/cache/repair/reinstalls_git_packages_test.dart
|
| index 138cd04e5445e3ec2fcab1fb0424e2a5591bec89..a71e10dacae74e4cd73dbf3380f86ccf4a2eecbb 100644
|
| --- a/sdk/lib/_internal/pub/test/cache/repair/reinstalls_git_packages_test.dart
|
| +++ b/sdk/lib/_internal/pub_generated/test/cache/repair/reinstalls_git_packages_test.dart
|
| @@ -15,18 +15,16 @@ main() {
|
| initConfig();
|
| integration('reinstalls previously cached git packages', () {
|
| // Create two cached revisions of foo.
|
| - d.git('foo.git', [
|
| - d.libDir('foo'),
|
| - d.libPubspec('foo', '1.0.0')
|
| - ]).create();
|
| + d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.0')]).create();
|
|
|
| - d.appDir({"foo": {"git": "../foo.git"}}).create();
|
| + d.appDir({
|
| + "foo": {
|
| + "git": "../foo.git"
|
| + }
|
| + }).create();
|
| pubGet();
|
|
|
| - d.git('foo.git', [
|
| - d.libDir('foo'),
|
| - d.libPubspec('foo', '1.0.1')
|
| - ]).commit();
|
| + d.git('foo.git', [d.libDir('foo'), d.libPubspec('foo', '1.0.1')]).commit();
|
|
|
| pubUpgrade();
|
|
|
| @@ -35,8 +33,8 @@ main() {
|
| schedule(() {
|
| // Find the cached foo packages for each revision.
|
| var gitCacheDir = path.join(sandboxDir, cachePath, "git");
|
| - fooDirs = listDir(gitCacheDir)
|
| - .where((dir) => path.basename(dir).startsWith("foo-")).toList();
|
| + fooDirs = listDir(
|
| + gitCacheDir).where((dir) => path.basename(dir).startsWith("foo-")).toList();
|
|
|
| // Delete "foo.dart" from them.
|
| for (var dir in fooDirs) {
|
| @@ -45,8 +43,7 @@ main() {
|
| });
|
|
|
| // Repair them.
|
| - schedulePub(args: ["cache", "repair"],
|
| - output: '''
|
| + schedulePub(args: ["cache", "repair"], output: '''
|
| Resetting Git repository for foo 1.0.0...
|
| Resetting Git repository for foo 1.0.1...
|
| Reinstalled 2 packages.''');
|
| @@ -55,14 +52,12 @@ main() {
|
| schedule(() {
|
| var fooLibs = fooDirs.map((dir) {
|
| var fooDirName = path.basename(dir);
|
| - return d.dir(fooDirName, [
|
| - d.dir("lib", [d.file("foo.dart", 'main() => "foo";')])
|
| - ]);
|
| + return d.dir(
|
| + fooDirName,
|
| + [d.dir("lib", [d.file("foo.dart", 'main() => "foo";')])]);
|
| }).toList();
|
|
|
| - d.dir(cachePath, [
|
| - d.dir("git", fooLibs)
|
| - ]).validate();
|
| + d.dir(cachePath, [d.dir("git", fooLibs)]).validate();
|
| });
|
| });
|
| }
|
|
|