File tree 5 files changed +22
-0
lines changed
5 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1703,3 +1703,11 @@ struct CompilationResultCaptureGroup: CaptureGroup {
1703
1703
1704
1704
init ? ( groups: [ String ] ) { }
1705
1705
}
1706
+
1707
+ struct SwiftDriverJobDiscoveryEmittingModuleCaptureGroup : CaptureGroup {
1708
+ static let outputType : OutputType = . task
1709
+
1710
+ static let regex = Regex ( pattern: #"SwiftDriverJobDiscovery \w+ \w+ Emitting module for .* \(in target '.*' from project '.*'\)"# )
1711
+
1712
+ init ? ( groups: [ String ] ) { }
1713
+ }
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ package class Parser {
97
97
PackageGraphResolvingEndedCaptureGroup . self,
98
98
PackageGraphResolvedItemCaptureGroup . self,
99
99
DuplicateLocalizedStringKeyCaptureGroup . self,
100
+ SwiftDriverJobDiscoveryEmittingModuleCaptureGroup . self,
100
101
]
101
102
102
103
// MARK: - Init
Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ protocol OutputRendering {
76
76
func formatWillNotBeCodesignWarning( group: WillNotBeCodeSignedCaptureGroup ) -> String
77
77
func formatWriteAuxiliaryFile( group: WriteAuxiliaryFileCaptureGroup ) -> String ?
78
78
func formatWriteFile( group: WriteFileCaptureGroup ) -> String ?
79
+ func formatSwiftDriverJobDiscoveryEmittingModule( group: SwiftDriverJobDiscoveryEmittingModuleCaptureGroup ) -> String ?
79
80
}
80
81
81
82
extension OutputRendering {
@@ -266,6 +267,8 @@ extension OutputRendering {
266
267
return formatWriteFile ( group: group)
267
268
case let group as XcodebuildErrorCaptureGroup :
268
269
return formatError ( group: group)
270
+ case let group as SwiftDriverJobDiscoveryEmittingModuleCaptureGroup :
271
+ return formatSwiftDriverJobDiscoveryEmittingModule ( group: group)
269
272
default :
270
273
assertionFailure ( )
271
274
return nil
@@ -525,4 +528,8 @@ extension OutputRendering {
525
528
func formatWriteFile( group: WriteFileCaptureGroup ) -> String ? {
526
529
nil
527
530
}
531
+
532
+ func formatSwiftDriverJobDiscoveryEmittingModule( group: SwiftDriverJobDiscoveryEmittingModuleCaptureGroup ) -> String ? {
533
+ nil
534
+ }
528
535
}
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ extension String {
89
89
PackageGraphResolvingEndedCaptureGroup . self,
90
90
PackageGraphResolvedItemCaptureGroup . self,
91
91
XcodebuildErrorCaptureGroup . self,
92
+ SwiftDriverJobDiscoveryEmittingModuleCaptureGroup . self,
92
93
]
93
94
94
95
func captureGroup( with pattern: String ) -> CaptureGroup ? {
Original file line number Diff line number Diff line change @@ -26,4 +26,9 @@ final class CaptureGroupTests: XCTestCase {
26
26
let input = #"/* com.apple.actool.compilation-results */"#
27
27
XCTAssertTrue ( CompilationResultCaptureGroup . regex. match ( string: input) )
28
28
}
29
+
30
+ func testMatchSwiftDriverJobDiscoveryEmittingModule( ) {
31
+ let input = #"SwiftDriverJobDiscovery normal arm64 Emitting module for Widgets (in target 'Widgets' from project 'Backyard Birds')"#
32
+ XCTAssertTrue ( SwiftDriverJobDiscoveryEmittingModuleCaptureGroup . regex. match ( string: input) )
33
+ }
29
34
}
You can’t perform that action at this time.
0 commit comments