Skip to content

Commit

Permalink
remove
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagman committed Oct 25, 2024
1 parent caa4c10 commit 2a21d04
Showing 1 changed file with 0 additions and 56 deletions.
56 changes: 0 additions & 56 deletions script/tool/test/common/xcode_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -253,62 +253,6 @@ void main() {
]));
});

test('zips xcresult', () async {
processRunner.mockProcessesForExecutable['xcrun'] = <FakeProcessInfo>[
FakeProcessInfo(MockProcess(exitCode: 1), <String>['xcodebuild']),
];

final FileSystem fileSystem = MemoryFileSystem();
final Directory directory = fileSystem.currentDirectory;
final int exitCode = await xcode.runXcodeBuild(
directory,
'ios',
workspace: 'A.xcworkspace',
scheme: 'AScheme',
platform: MockPlatform()
..environment = <String, String>{'FLUTTER_LOGS_DIR': '/path/to/logs'},
);

final String expectedResultBundlePath = fileSystem.systemTempDirectory
.childDirectory('flutter_xcresult.rand0')
.childDirectory('result')
.path;

expect(exitCode, 1);
expect(
processRunner.recordedCalls,
orderedEquals(<ProcessCall>[
ProcessCall(
'xcrun',
<String>[
'xcodebuild',
'build',
'-workspace',
'A.xcworkspace',
'-scheme',
'AScheme',
'-resultBundlePath',
expectedResultBundlePath
],
directory.path,
),
ProcessCall(
'zip',
<String>[
'xcodebuild',
'build',
'-workspace',
'A.xcworkspace',
'-scheme',
'AScheme',
'-resultBundlePath',
expectedResultBundlePath
],
directory.path,
),
]));
});

test('sets CODE_SIGN_ENTITLEMENTS for macos tests', () async {
final FileSystem fileSystem = MemoryFileSystem();
final Directory directory = fileSystem.currentDirectory;
Expand Down

0 comments on commit 2a21d04

Please sign in to comment.