Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
4329bea9
Unverified
Commit
4329bea9
authored
Feb 10, 2021
by
Jenn Magder
Committed by
GitHub
Feb 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compress module_test_ios xcresult (#75736)
parent
8f3a6245
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
module_test_ios.dart
dev/devicelab/bin/tasks/module_test_ios.dart
+19
-1
No files found.
dev/devicelab/bin/tasks/module_test_ios.dart
View file @
4329bea9
...
...
@@ -291,10 +291,12 @@ Future<void> main() async {
}
section
(
'Run platform unit tests'
);
final
String
resultBundleTemp
=
Directory
.
systemTemp
.
createTempSync
(
'module_test_ios_xcresult.'
).
path
;
await
testWithNewIOSSimulator
(
'TestAdd2AppSim'
,
(
String
deviceId
)
{
simulatorDeviceId
=
deviceId
;
final
String
resultBundlePath
=
path
.
join
(
resultBundleTemp
,
'result'
);
final
String
resultBundlePath
=
path
.
join
(
hostAgent
.
dumpDirectory
.
path
,
'module_test_ios-objc-
${DateTime.now().toLocal().toIso8601String()}
'
);
return
inDirectory
(
objectiveCHostApp
,
()
=>
exec
(
'xcodebuild'
,
...
...
@@ -320,6 +322,22 @@ Future<void> main() async {
}
);
// Zip the test results to the artifacts directory for upload.
await
inDirectory
(
resultBundleTemp
,
()
{
final
String
zipPath
=
path
.
join
(
hostAgent
.
dumpDirectory
.
path
,
'module_test_ios-objc-
${DateTime.now().toLocal().toIso8601String()}
.zip'
);
return
exec
(
'zip'
,
<
String
>[
'-r'
,
'-9'
,
zipPath
,
'result.xcresult'
,
],
canFail:
true
,
// Best effort to get the logs.
);
});
section
(
'Fail building existing Objective-C iOS app if flutter script fails'
);
final
String
xcodebuildOutput
=
await
inDirectory
<
String
>(
objectiveCHostApp
,
()
=>
eval
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment