Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packages/shorebird_tests/test/shorebird_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,20 @@ Future<Directory> _copyTemplateProject() async {
);

// Use platform copy to preserve the full directory tree efficiently.
final ProcessResult result;
if (Platform.isWindows) {
await Process.run('xcopy', [
result = await Process.run('xcopy', [
template.path,
testDir.path,
'/E',
'/I',
'/Q',
]);
} else {
await Process.run('cp', ['-R', template.path, testDir.path]);
result = await Process.run('cp', ['-R', template.path, testDir.path]);
}
if (result.exitCode != 0) {
throw Exception('Failed to copy template project: ${result.stderr}');
}

return testDir;
Expand Down