Skip to content

Commit cf5b376

Browse files
committed
trying run in shell for windows
1 parent 24a17a7 commit cf5b376

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

webdev/lib/src/pubspec.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class PackageExceptionDetails {
3838
}
3939

4040
Future _runPubDeps() async {
41-
var result = Process.runSync('pub', ['deps']);
41+
var result = Process.runSync('pub', ['deps'], runInShell: true);
4242

4343
if (result.exitCode == 65 || result.exitCode == 66) {
4444
throw new PackageException._(

webdev/test/integration_test.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ dependencies:
219219
test('should succeed with valid configuration', () async {
220220
var exampleDirectory = p.absolute(p.join(p.current, '..', 'example'));
221221
var process = await TestProcess.start(_pubPath, ['get'],
222-
workingDirectory: exampleDirectory, environment: _getPubEnvironment());
222+
workingDirectory: exampleDirectory,
223+
environment: _getPubEnvironment(),
224+
runInShell: true);
223225

224226
await process.shouldExit(0);
225227

0 commit comments

Comments
 (0)