Skip to content

Commit a3ff42c

Browse files
committed
update
1 parent 023ba9a commit a3ff42c

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

Tests/PackageSigningTests/SigningEntityTests.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ struct SigningEntityTests {
7070
}
7171

7272
@Test(
73-
.enabledOn(platform: .MacOS),
74-
.enableIfRealSigningIdentityTestEnabled,
75-
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
73+
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
7674
)
7775
func fromKeychainCertificate() async throws {
7876
let label = try #require(Environment.current["REAL_SIGNING_IDENTITY_LABEL"])

Tests/PackageSigningTests/SigningIdentityTests.swift

+1-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,7 @@ struct SigningIdentityTests {
8282
}
8383

8484
@Test(
85-
.enabledOn(platform: .MacOS),
86-
.enableIfRealSigningIdentityTestEnabled,
87-
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
85+
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
8886
)
8987
func testSigningIdentityFromKeychain() async throws {
9088
let label = try #require(Environment.current["REAL_SIGNING_IDENTITY_LABEL"])

Tests/PackageSigningTests/SigningTests.swift

+5-11
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ struct SigningTests {
616616
}
617617

618618
@Test(
619-
.enableIfRealSigningIdentityTestEnabled
619+
.enabled(if: isRealSigningIdentityTestEnabled())
620620
)
621621
func cMSEndToEndWithRSAKeyADPCertificate() async throws {
622622

@@ -676,7 +676,7 @@ struct SigningTests {
676676
}
677677

678678
@Test(
679-
.enableIfRealSigningIdentityTestEnabled
679+
.enabled(if: isRealSigningIdentityTestEnabled())
680680
)
681681
func cMSEndToEndWithECKeyADPCertificate() async throws {
682682
let keyAndCertChain = try ecADPKeyAndCertChain()
@@ -735,9 +735,7 @@ struct SigningTests {
735735

736736

737737
@Test(
738-
.enabledOn(platform: .MacOS),
739-
.enableIfRealSigningIdentityTestEnabled,
740-
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
738+
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
741739
)
742740
func testCMS1_0_0EndToEndWithADPSigningIdentityFromKeychain() async throws {
743741
let label = try #require(
@@ -793,9 +791,7 @@ struct SigningTests {
793791
}
794792

795793
@Test(
796-
.enabledOn(platform: .MacOS),
797-
.enableIfRealSigningIdentityTestEnabled,
798-
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
794+
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
799795
)
800796
func testCMSEndToEndWithECKeyADPSigningIdentityFromKeychain() async throws {
801797
let label = try #require(
@@ -849,9 +845,7 @@ struct SigningTests {
849845
}
850846

851847
@Test(
852-
.enabledOn(platform: .MacOS),
853-
.enableIfRealSigningIdentityTestEnabled,
854-
.enableIfEnvVarSet("REAL_SIGNING_IDENTITY_LABEL")
848+
.enabled(if: isMacOS() && isRealSigningIdentityTestEnabled() && isEnvironmentVariableSet("REAL_SIGNING_IDENTITY_LABEL"))
855849
)
856850
func MSEndToEndWithRSAKeyADPSigningIdentityFromKeychain() async throws {
857851
let label = try #require(

0 commit comments

Comments
 (0)