| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:io'; | |
| 6 | |
| 7 import 'package:path/path.dart' as p; | 5 import 'package:path/path.dart' as p; |
| 8 import 'package:scheduled_test/scheduled_process.dart'; | 6 import 'package:scheduled_test/scheduled_process.dart'; |
| 9 import 'package:scheduled_test/scheduled_stream.dart'; | 7 import 'package:scheduled_test/scheduled_stream.dart'; |
| 10 import 'package:scheduled_test/scheduled_test.dart'; | |
| 11 | 8 |
| 12 import '../../descriptor.dart' as d; | 9 import '../../descriptor.dart' as d; |
| 13 import '../../test_pub.dart'; | 10 import '../../test_pub.dart'; |
| 14 import 'utils.dart'; | 11 import 'utils.dart'; |
| 15 | 12 |
| 16 main() { | 13 main() { |
| 17 integration("an outdated binstub runs 'pub global run'", () { | 14 integration("an outdated binstub runs 'pub global run'", () { |
| 18 servePackages((builder) { | 15 servePackages((builder) { |
| 19 builder.serve("foo", "1.0.0", pubspec: { | 16 builder.serve("foo", "1.0.0", pubspec: { |
| 20 "executables": { | 17 "executables": { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 39 | 36 |
| 40 var process = new ScheduledProcess.start( | 37 var process = new ScheduledProcess.start( |
| 41 p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")), | 38 p.join(sandboxDir, cachePath, "bin", binStubName("foo-script")), |
| 42 ["arg1", "arg2"], | 39 ["arg1", "arg2"], |
| 43 environment: getEnvironment()); | 40 environment: getEnvironment()); |
| 44 | 41 |
| 45 process.stdout.expect(consumeThrough("ok")); | 42 process.stdout.expect(consumeThrough("ok")); |
| 46 process.shouldExit(); | 43 process.shouldExit(); |
| 47 }); | 44 }); |
| 48 } | 45 } |
| OLD | NEW |