Fix parsing system targets in `Package.swift` (#189)
This will unblock making CI work in TokamakUI/Tokamak#333.
This commit is contained in:
parent
3015e7e4dc
commit
ac19a7e868
|
@ -76,6 +76,7 @@ public struct Product: Codable {
|
|||
public enum TargetType: String, Codable {
|
||||
case regular
|
||||
case test
|
||||
case system
|
||||
}
|
||||
|
||||
public struct Target: Codable {
|
||||
|
|
|
@ -176,7 +176,7 @@ public final class Toolchain {
|
|||
switch target.type {
|
||||
case .regular:
|
||||
return "Sources/\(target.name)"
|
||||
case .test:
|
||||
case .test, .system:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
@ -155,6 +155,7 @@ extension StackTraceTests {
|
|||
XCTAssertEqual(stackTrace, expected)
|
||||
}
|
||||
}
|
||||
|
||||
extension StackTraceTests {
|
||||
func testSafariStackTrace() {
|
||||
// swiftlint:disable line_length
|
||||
|
@ -285,6 +286,7 @@ extension StackTraceTests {
|
|||
XCTAssertEqual(stackTrace, expected)
|
||||
}
|
||||
}
|
||||
|
||||
extension StackTraceTests {
|
||||
func testChromeStackTrace() {
|
||||
// swiftlint:disable line_length
|
||||
|
|
Loading…
Reference in New Issue